email_insert_sql=f"""INSERT INTO email_config (brand_id,email_servicer_id,email,email_name,auth_code,refresh_token,raw_token,code_type,imap_addr,imap_port,imap_ssl,smtp_addr,smtp_port,smtp_ssl,enable_signature,signature_content,auth_folder,connect_status,failed_reason,status,create_at,update_at) VALUES
email_select_sql=f'select * from `email_config` where brand_id = {emailIntegrationData.brandId} and email = "{emailIntegrationData.append_email_address}" and email_name = "{emailIntegrationData.append_email_name}"'
email_insert_sql=f"""INSERT INTO email_config (brand_id,email_servicer_id,email,email_name,auth_code,refresh_token,raw_token,code_type,imap_addr,imap_port,imap_ssl,smtp_addr,smtp_port,smtp_ssl,enable_signature,signature_content,auth_folder,connect_status,failed_reason,status,create_at,update_at) VALUES
email_select_sql=f'select * from `email_config` where brand_id = {emailIntegrationData.brandId} and email = "{emailIntegrationData.append_email_address}"'
whatsapp_insert_sql=f"""INSERT INTO `whatsapp_phone` (waba_id,brand_id,shop_id,phone_number,verified_name,status,quality_rating,code_verification_status,new_name_status,name_status,messaging_limit_tier,is_deleted,created_at,updated_at) VALUES
waba_insert_sql=f"""INSERT INTO `whatsapp_conf` (brand_id,cust_space_id,waba_id,display_name,currency,account_review_status,is_deleted,created_at,updated_at) VALUES
whatsapp_account_select_sql=f'select * from `whatsapp_phone` where brand_id = {whatsappIntegrationData.brandId} and verified_name = "{whatsapp_display_name}" and phone_number = "{whatsapp_phone_number}" and is_deleted = 0'
whatsapp_account_delete_sql=f'delete from whatsapp_phone where brand_id = {whatsappIntegrationData.brandId} and verified_name = "{whatsappIntegrationData.insert_whatsapp_name}" and waba_id = "{whatsappIntegrationData.insert_waba_id}"'
whatsapp_waba_delete_sql=f'delete from whatsapp_conf where brand_id = {whatsappIntegrationData.brandId} and waba_id = "{whatsappIntegrationData.insert_waba_id}" and display_name = "{whatsappIntegrationData.insert_waba_name}"'
whatsapp_template_delete_sql=f'delete from whatsapp_template where brand_id = {whatsappIntegrationData.brandId} and template_name like "%autotest%"'
whatsapp_template_select_sql=f'select * from `whatsapp_template` where brand_id = {whatsappIntegrationData.brandId} and waba_id = {whatsappIntegrationData.whatsapp_waba_id}'