Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / mysqldb / index.js
index 53e5060..6dea92c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6ea1=['MailQueueReport','../api/mailQueueReport/mailQueueReport.model','../api/dashboard/dashboard.model','DashboardItem','FaxAccount','../api/faxAccount/faxAccount.model','../api/faxApplication/faxApplication.model','FaxInteraction','FaxMessage','../api/faxMessage/faxMessage.model','FaxQueue','../api/faxQueue/faxQueue.model','FaxQueueReport','../api/faxQueueReport/faxQueueReport.model','SmsAccount','../api/smsAccount/smsAccount.model','../api/smsInteraction/smsInteraction.model','SmsMessage','../api/smsMessage/smsMessage.model','SmsQueue','../api/smsQueue/smsQueue.model','OpenchannelAccount','../api/openchannelAccount/openchannelAccount.model','OpenchannelApplication','../api/openchannelApplication/openchannelApplication.model','OpenchannelInteraction','OpenchannelMessage','../api/openchannelMessage/openchannelMessage.model','OpenchannelQueue','../api/openchannelQueue/openchannelQueue.model','ChatWebsite','../api/chatWebsite/chatWebsite.model','../api/openchannelQueueReport/openchannelQueueReport.model','ChatApplication','../api/chatApplication/chatApplication.model','ChatInteraction','../api/chatInteraction/chatInteraction.model','ChatMessage','ChatOfflineMessage','../api/chatQueue/chatQueue.model','../api/chatProactiveAction/chatProactiveAction.model','CmCompany','../api/cmCompany/cmCompany.model','CmContact','../api/cmContact/cmContact.model','CmHopper','../api/cmHopper/cmHopper.model','CmHopperHistory','../api/cmHopperHistory/cmHopperHistory.model','ReportAgentPreview','../api/reportAgentPreview/reportAgentPreview.model','Action','../api/action/action.model','Automation','../api/automation/automation.model','../api/cannedAnswer/cannedAnswer.model','Disposition','../api/disposition/disposition.model','Condition','../api/condition/condition.model','Interval','../api/interval/interval.model','Pause','../api/pause/pause.model','../api/cdr/cdr.model','VoiceQueuesLog','../api/voiceQueuesLog/voiceQueuesLog.model','Schedule','../api/schedule/schedule.model','../api/sound/sound.model','Tag','ContactItemType','../api/contactItemType/contactItemType.model','CmContactHasItem','../api/cmContactHasItem/cmContactHasItem.model','CmHopperAdditionalPhone','../api/cmHopperAdditionalPhone/cmHopperAdditionalPhone.model','Template','Trigger','../api/trigger/trigger.model','Variable','../api/variable/variable.model','../api/integration/integration.model','IntegrationReport','../api/integrationReport/integrationReport.model','AnalyticCustomReport','../api/analyticCustomReport/analyticCustomReport.model','../api/analyticDefaultReport/analyticDefaultReport.model','../api/analyticExtractedReport/analyticExtractedReport.model','AnalyticMetric','../api/analyticMetric/analyticMetric.model','../api/analyticFieldReport/analyticFieldReport.model','AnalyticTreeReport','../api/analyticTreeReport/analyticTreeReport.model','SalesforceAccount','../api/intSalesforceAccount/intSalesforceAccount.model','SalesforceConfiguration','../api/intSalesforceConfiguration/intSalesforceConfiguration.model','SalesforceField','SugarcrmAccount','../api/intSugarcrmAccount/intSugarcrmAccount.model','SugarcrmConfiguration','DeskField','ZohoAccount','../api/intZohoAccount/intZohoAccount.model','ZohoConfiguration','../api/intZohoConfiguration/intZohoConfiguration.model','ZohoField','../api/intZohoField/intZohoField.model','../api/intZendeskAccount/intZendeskAccount.model','ZendeskConfiguration','../api/intZendeskConfiguration/intZendeskConfiguration.model','ZendeskField','../api/intFreshdeskAccount/intFreshdeskAccount.model','FreshdeskConfiguration','../api/intFreshdeskConfiguration/intFreshdeskConfiguration.model','FreshdeskField','../api/intFreshdeskField/intFreshdeskField.model','VtigerAccount','../api/intVtigerAccount/intVtigerAccount.model','../api/intVtigerConfiguration/intVtigerConfiguration.model','VtigerField','../api/intVtigerField/intVtigerField.model','ServicenowAccount','../api/intServicenowAccount/intServicenowAccount.model','../api/intServicenowConfiguration/intServicenowConfiguration.model','ServicenowField','../api/intServicenowField/intServicenowField.model','Dynamics365Account','Dynamics365Configuration','../api/intDynamics365Configuration/intDynamics365Configuration.model','Dynamics365Field','../api/intDynamics365Field/intDynamics365Field.model','FreshsalesConfiguration','../api/intFreshsalesConfiguration/intFreshsalesConfiguration.model','FreshsalesField','../api/intFreshsalesField/intFreshsalesField.model','Integration','Network','ChatInternalMessage','../api/jscriptyAnswerReport/jscriptyAnswerReport.model','JscriptyQuestionReport','../api/jscriptyQuestionReport/jscriptyQuestionReport.model','SmsQueueReport','../api/smsQueueReport/smsQueueReport.model','SquareReport','../api/squareReport/squareReport.model','SquareDetailsReport','../api/squareReportDetail/squareReportDetail.model','JscriptyProject','Setting','../api/setting/setting.model','SquareOdbc','../api/squareOdbc/squareOdbc.model','SquareProject','../api/squareProject/squareProject.model','../api/squareRecording/squareRecording.model','../api/squareMessage/squareMessage.model','../api/team/team.model','License','Campaign','../api/campaign/campaign.model','Migration','../api/migration/migration.model','Attachment','../api/attachment/attachment.model','../api/plugin/plugin.model','MailTransferReport','../api/mailTransferReport/mailTransferReport.model','ChatTransferReport','../api/chatTransferReport/chatTransferReport.model','FaxTransferReport','../api/faxTransferReport/faxTransferReport.model','OpenchannelTransferReport','../api/openchannelTransferReport/openchannelTransferReport.model','SmsTransferReport','CmList','../api/cmList/cmList.model','VoicePrefix','UserProfileSection','../api/userProfileSection/userProfileSection.model','UserProfileResource','../api/userProfileResource/userProfileResource.model','UserNotification','../api/userNotification/userNotification.model','WhatsappAccount','../api/whatsappAccount/whatsappAccount.model','WhatsappApplication','../api/whatsappApplication/whatsappApplication.model','WhatsappMessage','../api/whatsappMessage/whatsappMessage.model','WhatsappQueueReport','../api/whatsappQueueReport/whatsappQueueReport.model','WhatsappTransferReport','WhatsappQueue','../api/whatsappQueue/whatsappQueue.model','../api/cloudProvider/cloudProvider.model','../api/teamVoiceQueue/teamVoiceQueue.model','TeamVoicePrefix','../api/teamVoicePrefix/teamVoicePrefix.model','UserSetting','../api/user-setting/user-setting.model','MailInteractionHasTag','../api/mailInteractionHasTag/mailInteractionHasTag.model','cascade','UserId','hasOne','userSetting','hasMany','VoiceRecording','Recordings','VoiceQueuesRt','Extensions','CmHopperFinal','HopperFinals','HopperHistory','ChatInteractions','FaxInteractions','MailInteraction','MailInteractions','WhatsappInteraction','WhatsappInteractions','UserNotifications','SenderId','Hoppers','SET\x20NULL','belongsTo','UserProfile','userProfileId','Groups','belongsToMany','Contacts','cm_user_has_contacts','Lists','cm_user_has_lists','Team','user_has_teams','user_has_mail_interactions','user_has_chat_interactions','user_has_fax_interactions','SmsInteraction','SmsInteractions','OpenchannelInteractions','user_has_openchannel_interactions','user_has_whatsapp_interactions','VoiceQueues','VoicePrefixes','MailQueues','ChatQueue','OpenchannelQueues','UserOpenchannelQueue','WhatsappQueues','ChatWebsites','user_has_chat_websites','user_has_fax_accounts','user_has_mail_accounts','OpenchannelAccounts','user_has_openchannel_accounts','SmsAccounts','WhatsappAccounts','user_has_whatsapp_accounts','SpiedAgents','ChanSpyId','Applications','Sound','Members','VoiceQueueId','HopperHistories','CmHopperBlack','HopperBlacks','JscriptySessionReport','TrunkId','TrunkBackup','TrunkBackupId','IntervalId','mandatoryDispositionPause','voice_queues_has_cm_lists','Agents','Teams','TeamVoiceQueue','BlackLists','voice_queues_has_cm_blacklists','Messages','mailboxuser','mailbox','uniqueid','AgentReports','Contact','ContactId','MailAccount','MailAccountId','CloudProvider','CloudProviderId','restrict','Smtp','Dispositions','CannedAnswer','Answers','Interactions','ListId','TemplateId','team_has_mail_queues','MailInteractionId','Account','Tags','mail_interaction_has_tags','ThroughTags','Users','Interaction','ChatOfflineMessageId','List','Dashboard','Items','FaxAccountId','FaxApplication','Exntensions','mandatoryDispositionPauseId','FaxInteractionId','fax_interaction_has_tags','team_has_fax_queues','SmsAccountId','SmsApplication','TagId','SmsInteractionId','Owner','sms_interaction_has_tags','user_has_sms_interactions','SmsQueueId','team_has_sms_queues','OpenchannelAccountId','OpenchannelQueueId','OpenchannelInteractionId','openchannel_interaction_has_tags','team_has_openchannel_queues','ChatWebsiteId','ChatProactiveAction','ProactiveActions','OpenchannelQueueReport','Agent','Queue','ChatQueueId','Website','ChatInteractionId','chat_interaction_has_tags','AttachmentId','Attachments','team_has_chat_queues','ChatGroup','ChatGroupId','chat_group_has_users','CompanyId','JscriptySessions','Company','cm_contact_has_tags','AdditionalPhones','CampaignId','OwnerId','AutomationAllId','Any','OneAny','AutomationAnyId','Actions','AutomationId','ParentId','Intervals','MailApplications','ChatApplications','FaxApplications','AnalyticDefaultReport','DefaultReportId','Mohs','moh_has_sounds','ItemType','ItemTypeId','CmHopperId','CmContactId','AllConditions','AllCondition','TriggerAllId','TriggerAnyId','TriggerId','AnalyticFieldReport','CustomReportId','Fields','MetricId','Configurations','Subjects','SubjectId','DescriptionId','FieldId','Subject','Description','Field','AccountId','SugarcrmField','VariableId','DeskAccount','DeskConfiguration','Descriptions','int_desk_configuration_has_tags','ZendeskAccount','int_zendesk_configuration_has_tags','FreshdeskAccount','int_freshdesk_configuration_has_tags','VtigerConfiguration','ServicenowConfiguration','FreshsalesAccount','ChatQueueReport','FromId','ToId','JscriptyAnswerReport','SessionId','ProjectId','ChatQueues','SmsQueues','team_has_whatsapp_queues','campaigns_has_cm_lists','campaigns_has_cm_blacklists','FromAccount','FromUserId','FromAgent','ToUserId','ToAgent','ToQueue','ToMailAccountId','ToAccount','FromChatWebsiteId','ToChatQueueId','ToChatWebsiteId','ToFaxQueueId','ToFaxAccountId','FromOpenchannelAccountId','ToOpenchannelQueueId','ToOpenchannelAccountId','FromSmsAccountId','ToSmsQueueId','CmCustomField','CustomFields','Queues','Resources','sectionId','WhatsappAccountId','whatsapp_interaction_has_tags','WhatsappInteractionId','FromWhatsappAccountId','ToWhatsappAccountId','ToQueueId','WhatsappQueueId','Imap','exports','../config/environment','sequelize','lodash','jstz','determine','defaultsDeep','xcall','xC@LL1234','mysql','utf8mb4','name','utf8','utf8_general_ci','sequelizeHistory','127.0.0.1','database','username','password','options','User','../api/user/user.model','VoiceChanSpy','import','../api/voiceChanSpy/voiceChanSpy.model','VoiceContext','../api/voiceContext/voiceContext.model','VoiceExtension','../api/voiceExtension/voiceExtension.model','VoiceMusicOnHold','VoiceQueue','ScreenRecording','../api/screenRecording/screenRecording.model','VoiceMail','VoiceMailMessage','../api/voiceMailMessage/voiceMailMessage.model','VoiceCallReport','../api/voiceCallReport/voiceCallReport.model','../api/voiceDialReport/voiceDialReport.model','VoiceAgentReport','../api/voiceAgentReport/voiceAgentReport.model','VoiceQueueReport','MemberReport','Trunk','../api/trunk/trunk.model','VoiceTransferReport','../api/voiceTransferReport/voiceTransferReport.model','UserVoiceQueueRt','UserVoiceQueue','../api/userVoiceQueue/userVoiceQueue.model','UserChatQueue','../api/userChatQueue/userChatQueue.model','UserMailQueue','../api/userMailQueue/userMailQueue.model','UserFaxQueue','../api/userFaxQueue/userFaxQueue.model','UserSmsQueue','../api/userSmsQueue/userSmsQueue.model','../api/userOpenchannelQueue/userOpenchannelQueue.model','UserWhatsappQueue','MailServerIn','MailServerOut','../api/mailAccount/mailAccount.model','MailQueue','../api/mailQueue/mailQueue.model','MailSubstatus','../api/mailSubstatus/mailSubstatus.model','MailMessage','../api/mailMessage/mailMessage.model','MailApplication','../api/mailApplication/mailApplication.model'];(function(_0x24cbba,_0x1ffdc7){var _0x17e0b5=function(_0x3b884c){while(--_0x3b884c){_0x24cbba['push'](_0x24cbba['shift']());}};_0x17e0b5(++_0x1ffdc7);}(_0x6ea1,0x1c2));var _0x16ea=function(_0x2f00c2,_0x3717cf){_0x2f00c2=_0x2f00c2-0x0;var _0x1a8f89=_0x6ea1[_0x2f00c2];return _0x1a8f89;};'use strict';var config=require(_0x16ea('0x0'));var Sequelize=require(_0x16ea('0x1'));var _=require(_0x16ea('0x2'));var jstz=require(_0x16ea('0x3'));var timezone=jstz[_0x16ea('0x4')]();config[_0x16ea('0x1')]=_[_0x16ea('0x5')](config['sequelize'],{'database':'motion2','username':_0x16ea('0x6'),'password':_0x16ea('0x7'),'options':{'host':'127.0.0.1','port':0xcea,'dialect':_0x16ea('0x8'),'dialectOptions':{'charset':_0x16ea('0x9')},'logging':![],'timezone':timezone[_0x16ea('0xa')](),'define':{'charset':_0x16ea('0xb'),'collate':_0x16ea('0xc')}}});config['sequelizeHistory']=_[_0x16ea('0x5')](config[_0x16ea('0xd')],{'database':'motion2','username':'xcall','password':_0x16ea('0x7'),'options':{'host':_0x16ea('0xe'),'port':0xcea,'dialect':_0x16ea('0x8'),'dialectOptions':{'charset':_0x16ea('0x9')},'logging':![],'timezone':timezone['name'](),'define':{'charset':_0x16ea('0xb'),'collate':_0x16ea('0xc')}}});var db={'Sequelize':Sequelize,'sequelize':new Sequelize(config['sequelize'][_0x16ea('0xf')],config['sequelize'][_0x16ea('0x10')],config[_0x16ea('0x1')][_0x16ea('0x11')],config[_0x16ea('0x1')][_0x16ea('0x12')])};var dbH={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0x16ea('0xd')][_0x16ea('0xf')],config[_0x16ea('0xd')][_0x16ea('0x10')],config[_0x16ea('0xd')]['password'],config[_0x16ea('0xd')][_0x16ea('0x12')])};db[_0x16ea('0x13')]=db['sequelize']['import'](_0x16ea('0x14'));db[_0x16ea('0x15')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x17'));db[_0x16ea('0x18')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x19'));db[_0x16ea('0x1a')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x1b'));db[_0x16ea('0x1c')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/voiceMusicOnHold/voiceMusicOnHold.model');db[_0x16ea('0x1d')]=db['sequelize'][_0x16ea('0x16')]('../api/voiceQueue/voiceQueue.model');db['VoiceRecording']=db[_0x16ea('0x1')]['import']('../api/voiceRecording/voiceRecording.model');db[_0x16ea('0x1e')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x1f'));db[_0x16ea('0x20')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/voiceMail/voiceMail.model');db[_0x16ea('0x21')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x22'));db[_0x16ea('0x23')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x24'));db['VoiceDialReport']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x25'));db[_0x16ea('0x26')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x27'));db[_0x16ea('0x28')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/voiceQueueReport/voiceQueueReport.model');db[_0x16ea('0x29')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/memberReport/memberReport.model');db[_0x16ea('0x2a')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x2b'));db[_0x16ea('0x2c')]=db[_0x16ea('0x1')]['import'](_0x16ea('0x2d'));db[_0x16ea('0x2e')]=db['sequelize']['import']('../api/userVoiceQueueRt/userVoiceQueueRt.model');db[_0x16ea('0x2f')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x30'));db[_0x16ea('0x31')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x32'));db[_0x16ea('0x33')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x34'));db[_0x16ea('0x35')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x36'));db[_0x16ea('0x37')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x38'));db['UserOpenchannelQueue']=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x39'));db[_0x16ea('0x3a')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/userWhatsappQueue/userWhatsappQueue.model');db[_0x16ea('0x3b')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/mailServerIn/mailServerIn.model');db[_0x16ea('0x3c')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/mailServerOut/mailServerOut.model');db['MailAccount']=db[_0x16ea('0x1')]['import'](_0x16ea('0x3d'));db[_0x16ea('0x3e')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x3f'));db[_0x16ea('0x40')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x41'));db['MailInteraction']=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/mailInteraction/mailInteraction.model');db[_0x16ea('0x42')]=db[_0x16ea('0x1')]['import'](_0x16ea('0x43'));db[_0x16ea('0x44')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x45'));db[_0x16ea('0x46')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x47'));db['Dashboard']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x48'));db[_0x16ea('0x49')]=db['sequelize'][_0x16ea('0x16')]('../api/dashboardItem/dashboardItem.model');db[_0x16ea('0x4a')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x4b'));db['FaxApplication']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x4c'));db[_0x16ea('0x4d')]=db[_0x16ea('0x1')]['import']('../api/faxInteraction/faxInteraction.model');db[_0x16ea('0x4e')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x4f'));db[_0x16ea('0x50')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x51'));db[_0x16ea('0x52')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x53'));db[_0x16ea('0x54')]=db[_0x16ea('0x1')]['import'](_0x16ea('0x55'));db['SmsApplication']=db['sequelize'][_0x16ea('0x16')]('../api/smsApplication/smsApplication.model');db['SmsInteraction']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x56'));db[_0x16ea('0x57')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x58'));db[_0x16ea('0x59')]=db[_0x16ea('0x1')]['import'](_0x16ea('0x5a'));db[_0x16ea('0x5b')]=db[_0x16ea('0x1')]['import'](_0x16ea('0x5c'));db[_0x16ea('0x5d')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x5e'));db[_0x16ea('0x5f')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/openchannelInteraction/openchannelInteraction.model');db[_0x16ea('0x60')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x61'));db[_0x16ea('0x62')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x63'));db[_0x16ea('0x64')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x65'));db['OpenchannelQueueReport']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x66'));db[_0x16ea('0x67')]=db['sequelize']['import'](_0x16ea('0x68'));db[_0x16ea('0x69')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x6a'));db[_0x16ea('0x6b')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/chatMessage/chatMessage.model');db[_0x16ea('0x6c')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/chatOfflineMessage/chatOfflineMessage.model');db['ChatQueue']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x6d'));db['ChatGroup']=db['sequelize'][_0x16ea('0x16')]('../api/chatGroup/chatGroup.model');db['ChatProactiveAction']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x6e'));db[_0x16ea('0x6f')]=db[_0x16ea('0x1')]['import'](_0x16ea('0x70'));db[_0x16ea('0x71')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x72'));db[_0x16ea('0x73')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x74'));db['CmHopperBlack']=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/cmHopperBlack/cmHopperBlack.model');db['CmHopperFinal']=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/cmHopperFinal/cmHopperFinal.model');db[_0x16ea('0x75')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x76'));db[_0x16ea('0x77')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x78'));db['CmCustomField']=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/cmCustomField/cmCustomField.model');db[_0x16ea('0x79')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x7a'));db[_0x16ea('0x7b')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x7c'));db['CannedAnswer']=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x7d'));db[_0x16ea('0x7e')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x7f'));db[_0x16ea('0x80')]=db[_0x16ea('0x1')]['import'](_0x16ea('0x81'));db[_0x16ea('0x82')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x83'));db[_0x16ea('0x84')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x85'));db['Cdr']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x86'));db[_0x16ea('0x87')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x88'));db[_0x16ea('0x89')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x8a'));db['Sound']=db[_0x16ea('0x1')]['import'](_0x16ea('0x8b'));db[_0x16ea('0x8c')]=db['sequelize'][_0x16ea('0x16')]('../api/tag/tag.model');db[_0x16ea('0x8d')]=db[_0x16ea('0x1')]['import'](_0x16ea('0x8e'));db[_0x16ea('0x8f')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x90'));db[_0x16ea('0x91')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x92'));db[_0x16ea('0x93')]=db[_0x16ea('0x1')]['import']('../api/template/template.model');db[_0x16ea('0x94')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x95'));db[_0x16ea('0x96')]=db[_0x16ea('0x1')]['import'](_0x16ea('0x97'));db['Integration']=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x98'));db[_0x16ea('0x99')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x9a'));db[_0x16ea('0x9b')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x9c'));db['AnalyticDefaultReport']=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x9d'));db['AnalyticExtractedReport']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x9e'));db[_0x16ea('0x9f')]=db[_0x16ea('0x1')]['import'](_0x16ea('0xa0'));db['AnalyticFieldReport']=db[_0x16ea('0x1')]['import'](_0x16ea('0xa1'));db[_0x16ea('0xa2')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xa3'));db[_0x16ea('0xa4')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xa5'));db[_0x16ea('0xa6')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xa7'));db[_0x16ea('0xa8')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/intSalesforceField/intSalesforceField.model');db[_0x16ea('0xa9')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xaa'));db[_0x16ea('0xab')]=db['sequelize']['import']('../api/intSugarcrmConfiguration/intSugarcrmConfiguration.model');db['SugarcrmField']=db[_0x16ea('0x1')]['import']('../api/intSugarcrmField/intSugarcrmField.model');db['DeskAccount']=db[_0x16ea('0x1')]['import']('../api/intDeskAccount/intDeskAccount.model');db['DeskConfiguration']=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/intDeskConfiguration/intDeskConfiguration.model');db[_0x16ea('0xac')]=db['sequelize'][_0x16ea('0x16')]('../api/intDeskField/intDeskField.model');db[_0x16ea('0xad')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xae'));db[_0x16ea('0xaf')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xb0'));db[_0x16ea('0xb1')]=db['sequelize']['import'](_0x16ea('0xb2'));db['ZendeskAccount']=db[_0x16ea('0x1')]['import'](_0x16ea('0xb3'));db[_0x16ea('0xb4')]=db[_0x16ea('0x1')]['import'](_0x16ea('0xb5'));db[_0x16ea('0xb6')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/intZendeskField/intZendeskField.model');db['FreshdeskAccount']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xb7'));db[_0x16ea('0xb8')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xb9'));db[_0x16ea('0xba')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xbb'));db[_0x16ea('0xbc')]=db[_0x16ea('0x1')]['import'](_0x16ea('0xbd'));db['VtigerConfiguration']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xbe'));db[_0x16ea('0xbf')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xc0'));db[_0x16ea('0xc1')]=db[_0x16ea('0x1')]['import'](_0x16ea('0xc2'));db['ServicenowConfiguration']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xc3'));db[_0x16ea('0xc4')]=db[_0x16ea('0x1')]['import'](_0x16ea('0xc5'));db[_0x16ea('0xc6')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/intDynamics365Account/intDynamics365Account.model');db[_0x16ea('0xc7')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xc8'));db[_0x16ea('0xc9')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xca'));db['FreshsalesAccount']=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/intFreshsalesAccount/intFreshsalesAccount.model');db[_0x16ea('0xcb')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xcc'));db[_0x16ea('0xcd')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xce'));db[_0x16ea('0xcf')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x98'));db[_0x16ea('0xd0')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/network/network.model');db['ChatQueueReport']=db['sequelize'][_0x16ea('0x16')]('../api/chatQueueReport/chatQueueReport.model');db[_0x16ea('0xd1')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/chatInternalMessage/chatInternalMessage.model');db['JscriptyAnswerReport']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xd2'));db[_0x16ea('0xd3')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xd4'));db['JscriptySessionReport']=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/jscriptySessionReport/jscriptySessionReport.model');db[_0x16ea('0xd5')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xd6'));db[_0x16ea('0xd7')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xd8'));db[_0x16ea('0xd9')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0xda'));db[_0x16ea('0xdb')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/jscriptyProject/jscriptyProject.model');db[_0x16ea('0xdc')]=db[_0x16ea('0x1')]['import'](_0x16ea('0xdd'));db[_0x16ea('0xde')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0xdf'));db[_0x16ea('0xe0')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xe1'));db['SquareRecording']=db[_0x16ea('0x1')]['import'](_0x16ea('0xe2'));db['SquareMessage']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xe3'));db['Team']=db['sequelize'][_0x16ea('0x16')](_0x16ea('0xe4'));db[_0x16ea('0xe5')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/license/license.model');db[_0x16ea('0xe6')]=db[_0x16ea('0x1')]['import'](_0x16ea('0xe7'));db[_0x16ea('0xe8')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xe9'));db[_0x16ea('0xea')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xeb'));db['Plugin']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xec'));db[_0x16ea('0xed')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0xee'));db[_0x16ea('0xef')]=db[_0x16ea('0x1')]['import'](_0x16ea('0xf0'));db[_0x16ea('0xf1')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xf2'));db[_0x16ea('0xf3')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0xf4'));db[_0x16ea('0xf5')]=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/smsTransferReport/smsTransferReport.model');db[_0x16ea('0xf6')]=db['sequelize']['import'](_0x16ea('0xf7'));db[_0x16ea('0xf8')]=db[_0x16ea('0x1')]['import']('../api/voicePrefix/voicePrefix.model');db['UserProfile']=db[_0x16ea('0x1')][_0x16ea('0x16')]('../api/userProfile/userProfile.model');db[_0x16ea('0xf9')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xfa'));db[_0x16ea('0xfb')]=db[_0x16ea('0x1')]['import'](_0x16ea('0xfc'));db[_0x16ea('0xfd')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0xfe'));db[_0x16ea('0xff')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x100'));db[_0x16ea('0x101')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x102'));db['WhatsappInteraction']=db['sequelize'][_0x16ea('0x16')]('../api/whatsappInteraction/whatsappInteraction.model');db[_0x16ea('0x103')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x104'));db[_0x16ea('0x105')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x106'));db[_0x16ea('0x107')]=db[_0x16ea('0x1')]['import']('../api/whatsappTransferReport/whatsappTransferReport.model');db[_0x16ea('0x108')]=db[_0x16ea('0x1')]['import'](_0x16ea('0x109'));db['CloudProvider']=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x10a'));db['TeamVoiceQueue']=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x10b'));db[_0x16ea('0x10c')]=db['sequelize'][_0x16ea('0x16')](_0x16ea('0x10d'));db['UserVoicePrefix']=db['sequelize'][_0x16ea('0x16')]('../api/userVoicePrefix/userVoicePrefix.model');db[_0x16ea('0x10e')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x10f'));db[_0x16ea('0x110')]=db[_0x16ea('0x1')][_0x16ea('0x16')](_0x16ea('0x111'));db['User']['hasOne'](db['VoiceMail'],{'as':_0x16ea('0x20'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x13')][_0x16ea('0x114')](db['UserSetting'],{'as':_0x16ea('0x115'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x13')][_0x16ea('0x116')](db[_0x16ea('0x117')],{'as':_0x16ea('0x118'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x13')][_0x16ea('0x116')](db['UserVoiceQueueRt'],{'as':_0x16ea('0x119'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x13')][_0x16ea('0x116')](db[_0x16ea('0x1a')],{'as':_0x16ea('0x11a'),'onDelete':_0x16ea('0x112'),'hooks':!![]});db[_0x16ea('0x13')][_0x16ea('0x116')](db[_0x16ea('0x11b')],{'as':_0x16ea('0x11c'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x13')][_0x16ea('0x116')](db['CmHopperHistory'],{'as':_0x16ea('0x11d'),'foreignKey':'UserId'});db[_0x16ea('0x13')]['hasMany'](db['ReportAgentPreview'],{'as':_0x16ea('0x77'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x13')][_0x16ea('0x116')](db[_0x16ea('0x5f')],{'as':'OpenchannelInteractions','foreignKey':'UserId'});db[_0x16ea('0x13')][_0x16ea('0x116')](db['ChatInteraction'],{'as':_0x16ea('0x11e'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x13')][_0x16ea('0x116')](db['SmsInteraction'],{'as':'SmsInteractions','foreignKey':_0x16ea('0x113')});db[_0x16ea('0x13')][_0x16ea('0x116')](db[_0x16ea('0x4d')],{'as':_0x16ea('0x11f'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x13')][_0x16ea('0x116')](db[_0x16ea('0x120')],{'as':_0x16ea('0x121'),'foreignKey':'UserId'});db[_0x16ea('0x13')][_0x16ea('0x116')](db[_0x16ea('0x122')],{'as':_0x16ea('0x123'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x13')][_0x16ea('0x116')](db[_0x16ea('0xfd')],{'as':_0x16ea('0x124'),'foreignKey':_0x16ea('0x125')});db[_0x16ea('0x13')]['hasMany'](db[_0x16ea('0x73')],{'as':_0x16ea('0x126'),'foreignKey':_0x16ea('0x113'),'onDelete':_0x16ea('0x127')});db[_0x16ea('0x13')][_0x16ea('0x128')](db[_0x16ea('0x129')],{'as':_0x16ea('0x129'),'foreignKey':_0x16ea('0x12a')});db[_0x16ea('0x13')]['belongsToMany'](db['ChatGroup'],{'as':_0x16ea('0x12b'),'through':'chat_group_has_users'});db[_0x16ea('0x13')][_0x16ea('0x12c')](db[_0x16ea('0x71')],{'as':_0x16ea('0x12d'),'through':_0x16ea('0x12e')});db['User']['belongsToMany'](db[_0x16ea('0xf6')],{'as':_0x16ea('0x12f'),'through':_0x16ea('0x130')});db['User'][_0x16ea('0x12c')](db[_0x16ea('0x131')],{'through':_0x16ea('0x132')});db[_0x16ea('0x13')][_0x16ea('0x12c')](db['MailInteraction'],{'as':_0x16ea('0x121'),'through':_0x16ea('0x133')});db[_0x16ea('0x13')][_0x16ea('0x12c')](db['ChatInteraction'],{'as':_0x16ea('0x11e'),'through':_0x16ea('0x134')});db[_0x16ea('0x13')][_0x16ea('0x12c')](db[_0x16ea('0x4d')],{'as':_0x16ea('0x11f'),'through':_0x16ea('0x135')});db[_0x16ea('0x13')][_0x16ea('0x12c')](db[_0x16ea('0x136')],{'as':_0x16ea('0x137'),'through':'user_has_sms_interactions'});db['User'][_0x16ea('0x12c')](db[_0x16ea('0x5f')],{'as':_0x16ea('0x138'),'through':_0x16ea('0x139')});db[_0x16ea('0x13')][_0x16ea('0x12c')](db[_0x16ea('0x122')],{'as':'WhatsappInteractions','through':_0x16ea('0x13a')});db[_0x16ea('0x13')][_0x16ea('0x12c')](db[_0x16ea('0x1d')],{'as':_0x16ea('0x13b'),'through':_0x16ea('0x2f'),'required':![]});db['User'][_0x16ea('0x12c')](db[_0x16ea('0xf8')],{'as':_0x16ea('0x13c'),'through':'UserVoicePrefix','required':![]});db[_0x16ea('0x13')][_0x16ea('0x12c')](db[_0x16ea('0x3e')],{'as':_0x16ea('0x13d'),'through':_0x16ea('0x33'),'required':![]});db[_0x16ea('0x13')][_0x16ea('0x12c')](db[_0x16ea('0x13e')],{'as':'ChatQueues','through':_0x16ea('0x31'),'required':![],'hooks':!![]});db['User']['belongsToMany'](db[_0x16ea('0x50')],{'as':'FaxQueues','through':'UserFaxQueue','required':![]});db[_0x16ea('0x13')][_0x16ea('0x12c')](db['SmsQueue'],{'as':'SmsQueues','through':_0x16ea('0x37'),'required':![]});db[_0x16ea('0x13')][_0x16ea('0x12c')](db[_0x16ea('0x62')],{'as':_0x16ea('0x13f'),'through':_0x16ea('0x140'),'required':![]});db[_0x16ea('0x13')][_0x16ea('0x12c')](db[_0x16ea('0x108')],{'as':_0x16ea('0x141'),'through':_0x16ea('0x3a'),'required':![]});db[_0x16ea('0x13')][_0x16ea('0x12c')](db[_0x16ea('0xf6')],{'through':_0x16ea('0x130')});db[_0x16ea('0x13')][_0x16ea('0x12c')](db['ChatWebsite'],{'as':_0x16ea('0x142'),'through':_0x16ea('0x143')});db['User'][_0x16ea('0x12c')](db[_0x16ea('0x4a')],{'as':'FaxAccounts','through':_0x16ea('0x144')});db[_0x16ea('0x13')][_0x16ea('0x12c')](db['MailAccount'],{'as':'MailAccounts','through':_0x16ea('0x145')});db['User']['belongsToMany'](db[_0x16ea('0x5b')],{'as':_0x16ea('0x146'),'through':_0x16ea('0x147')});db[_0x16ea('0x13')][_0x16ea('0x12c')](db['SmsAccount'],{'as':_0x16ea('0x148'),'through':'user_has_sms_accounts'});db[_0x16ea('0x13')][_0x16ea('0x12c')](db[_0x16ea('0xff')],{'as':_0x16ea('0x149'),'through':_0x16ea('0x14a')});db[_0x16ea('0x15')][_0x16ea('0x116')](db[_0x16ea('0x1a')],{'as':_0x16ea('0x14b'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x14c')});db[_0x16ea('0x18')][_0x16ea('0x116')](db[_0x16ea('0x1a')],{'onDelete':_0x16ea('0x112')});db[_0x16ea('0x1a')][_0x16ea('0x116')](db['VoiceExtension'],{'as':_0x16ea('0x14d'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0x1c')][_0x16ea('0x12c')](db[_0x16ea('0x14e')],{'as':'Sounds','through':'moh_has_sounds'});db[_0x16ea('0x1d')][_0x16ea('0x116')](db['UserVoiceQueueRt'],{'as':_0x16ea('0x14f'),'foreignKey':'VoiceQueueId'});db['VoiceQueue']['hasMany'](db[_0x16ea('0x73')],{'as':'Hoppers','foreignKey':'VoiceQueueId'});db[_0x16ea('0x1d')]['hasMany'](db[_0x16ea('0x11b')],{'as':_0x16ea('0x11c'),'foreignKey':_0x16ea('0x150')});db[_0x16ea('0x1d')][_0x16ea('0x116')](db[_0x16ea('0x75')],{'as':_0x16ea('0x151'),'foreignKey':_0x16ea('0x150')});db[_0x16ea('0x1d')]['hasMany'](db['ReportAgentPreview'],{'as':_0x16ea('0x77'),'foreignKey':_0x16ea('0x150')});db['VoiceQueue'][_0x16ea('0x116')](db[_0x16ea('0x152')],{'as':_0x16ea('0x153'),'foreignKey':_0x16ea('0x150')});db['VoiceQueue'][_0x16ea('0x116')](db[_0x16ea('0x154')],{'as':'JscriptySessions','foreignKey':_0x16ea('0x150')});db['VoiceQueue']['belongsTo'](db[_0x16ea('0x2a')],{'as':_0x16ea('0x2a'),'foreignKey':_0x16ea('0x155')});db[_0x16ea('0x1d')][_0x16ea('0x128')](db[_0x16ea('0x2a')],{'as':_0x16ea('0x156'),'foreignKey':_0x16ea('0x157')});db[_0x16ea('0x1d')]['belongsTo'](db[_0x16ea('0x82')],{'as':_0x16ea('0x82'),'foreignKey':_0x16ea('0x158')});db[_0x16ea('0x1d')][_0x16ea('0x128')](db[_0x16ea('0x84')],{'as':_0x16ea('0x159'),'foreignKey':'mandatoryDispositionPauseId'});db[_0x16ea('0x1d')][_0x16ea('0x12c')](db['CmList'],{'as':_0x16ea('0x12f'),'through':_0x16ea('0x15a')});db[_0x16ea('0x1d')][_0x16ea('0x12c')](db['User'],{'as':_0x16ea('0x15b'),'through':_0x16ea('0x2f')});db[_0x16ea('0x1d')][_0x16ea('0x12c')](db[_0x16ea('0x131')],{'as':_0x16ea('0x15c'),'through':_0x16ea('0x15d')});db[_0x16ea('0x1d')][_0x16ea('0x12c')](db[_0x16ea('0xf6')],{'as':_0x16ea('0x15e'),'through':_0x16ea('0x15f')});db[_0x16ea('0x117')][_0x16ea('0x128')](db['User'],{'as':_0x16ea('0x13'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x1e')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'as':_0x16ea('0x13'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x20')][_0x16ea('0x116')](db['VoiceMailMessage'],{'as':_0x16ea('0x160'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x161'),'sourceKey':_0x16ea('0x162')});db[_0x16ea('0x21')]['belongsTo'](db[_0x16ea('0x20')],{'foreignKey':_0x16ea('0x161'),'targetKey':_0x16ea('0x162')});db[_0x16ea('0x23')][_0x16ea('0x116')](db[_0x16ea('0x28')],{'as':'QueueCalls','foreignKey':_0x16ea('0x163'),'constraints':![]});db['VoiceCallReport']['hasMany'](db[_0x16ea('0x26')],{'as':_0x16ea('0x164'),'foreignKey':'uniqueid','constraints':![]});db[_0x16ea('0x23')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'as':_0x16ea('0x13'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x23')]['belongsTo'](db['CmContact'],{'as':_0x16ea('0x165'),'foreignKey':_0x16ea('0x166')});db[_0x16ea('0x3b')]['belongsTo'](db[_0x16ea('0x167')],{'as':_0x16ea('0x167'),'foreignKey':_0x16ea('0x168')});db[_0x16ea('0x3b')][_0x16ea('0x128')](db[_0x16ea('0x169')],{'as':_0x16ea('0x169'),'foreignKey':_0x16ea('0x16a'),'onDelete':_0x16ea('0x16b')});db[_0x16ea('0x3c')]['belongsTo'](db[_0x16ea('0x167')],{'as':'MailAccount','foreignKey':_0x16ea('0x168')});db[_0x16ea('0x3c')][_0x16ea('0x128')](db['CloudProvider'],{'as':_0x16ea('0x169'),'foreignKey':'CloudProviderId','onDelete':_0x16ea('0x16b')});db['MailAccount'][_0x16ea('0x114')](db['MailServerIn'],{'as':'Imap','onDelete':_0x16ea('0x112')});db[_0x16ea('0x167')][_0x16ea('0x114')](db[_0x16ea('0x3c')],{'as':_0x16ea('0x16c'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0x167')][_0x16ea('0x116')](db[_0x16ea('0x7e')],{'as':_0x16ea('0x16d'),'foreignKey':_0x16ea('0x168'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0x167')][_0x16ea('0x116')](db[_0x16ea('0x16e')],{'as':_0x16ea('0x16f'),'foreignKey':_0x16ea('0x168')});db[_0x16ea('0x167')]['hasMany'](db[_0x16ea('0x42')],{'as':_0x16ea('0x160'),'foreignKey':_0x16ea('0x168')});db[_0x16ea('0x167')][_0x16ea('0x116')](db[_0x16ea('0x120')],{'as':_0x16ea('0x170')});db[_0x16ea('0x167')][_0x16ea('0x116')](db[_0x16ea('0x44')],{'as':_0x16ea('0x14d'),'foreignKey':_0x16ea('0x168'),'onDelete':'cascade'});db[_0x16ea('0x167')][_0x16ea('0x128')](db[_0x16ea('0xf6')],{'as':'List','foreignKey':_0x16ea('0x171')});db['MailAccount'][_0x16ea('0x128')](db[_0x16ea('0x93')],{'as':'Template','foreignKey':_0x16ea('0x172')});db[_0x16ea('0x167')][_0x16ea('0x128')](db['Pause'],{'as':'mandatoryDispositionPause','foreignKey':'mandatoryDispositionPauseId'});db['MailAccount']['belongsToMany'](db[_0x16ea('0x13')],{'as':_0x16ea('0x15b'),'through':'user_has_mail_accounts'});db[_0x16ea('0x3e')][_0x16ea('0x12c')](db['User'],{'as':'Agents','through':_0x16ea('0x33')});db[_0x16ea('0x3e')][_0x16ea('0x12c')](db[_0x16ea('0x131')],{'through':_0x16ea('0x173'),'as':_0x16ea('0x15c')});db[_0x16ea('0x120')]['hasMany'](db['MailMessage'],{'as':_0x16ea('0x160'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x174')});db[_0x16ea('0x120')][_0x16ea('0x128')](db[_0x16ea('0x167')],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x168')});db[_0x16ea('0x120')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'as':_0x16ea('0x165'),'foreignKey':_0x16ea('0x166')});db[_0x16ea('0x120')][_0x16ea('0x128')](db['User'],{'as':'Owner','foreignKey':'UserId'});db[_0x16ea('0x120')][_0x16ea('0x12c')](db[_0x16ea('0x8c')],{'through':'mail_interaction_has_tags','as':_0x16ea('0x176')});db[_0x16ea('0x120')][_0x16ea('0x12c')](db[_0x16ea('0x8c')],{'through':_0x16ea('0x177'),'as':_0x16ea('0x178')});db[_0x16ea('0x120')]['belongsToMany'](db['User'],{'as':_0x16ea('0x179'),'through':_0x16ea('0x133'),'foreignKey':_0x16ea('0x174')});db[_0x16ea('0x42')]['hasMany'](db['Attachment'],{'as':'Attachments','onDelete':_0x16ea('0x112')});db[_0x16ea('0x42')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'as':_0x16ea('0x13')});db[_0x16ea('0x42')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'onDelete':_0x16ea('0x112'),'as':_0x16ea('0x165')});db[_0x16ea('0x42')]['belongsTo'](db[_0x16ea('0x120')],{'as':_0x16ea('0x17a'),'foreignKey':'MailInteractionId'});db[_0x16ea('0x42')][_0x16ea('0x128')](db[_0x16ea('0x167')],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x168')});db[_0x16ea('0x42')][_0x16ea('0x128')](db['ChatWebsite'],{'as':_0x16ea('0x64'),'foreignKey':'ChatWebsiteId'});db[_0x16ea('0x42')][_0x16ea('0x128')](db['ChatOfflineMessage'],{'as':'ChatOfflineMessage','foreignKey':_0x16ea('0x17b')});db[_0x16ea('0x44')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'onDelete':_0x16ea('0x16b')});db[_0x16ea('0x44')]['belongsTo'](db[_0x16ea('0x3e')],{'onDelete':_0x16ea('0x16b')});db[_0x16ea('0x44')][_0x16ea('0x128')](db[_0x16ea('0x167')],{'onDelete':'restrict'});db['MailApplication'][_0x16ea('0x128')](db[_0x16ea('0x82')],{'onDelete':_0x16ea('0x16b'),'foreignKey':'IntervalId'});db[_0x16ea('0x44')][_0x16ea('0x128')](db[_0x16ea('0x8c')],{'onDelete':_0x16ea('0x16b'),'foreignKey':'TagId'});db['MailQueueReport'][_0x16ea('0x128')](db[_0x16ea('0x167')],{});db[_0x16ea('0x46')][_0x16ea('0x128')](db[_0x16ea('0xf6')],{'as':_0x16ea('0x17c'),'foreignKey':'ListId'});db[_0x16ea('0x46')]['belongsTo'](db[_0x16ea('0x71')],{'as':_0x16ea('0x165'),'foreignKey':_0x16ea('0x166')});db[_0x16ea('0x46')]['belongsTo'](db['MailInteraction'],{});db['MailQueueReport'][_0x16ea('0x128')](db['MailMessage'],{});db[_0x16ea('0x46')][_0x16ea('0x128')](db[_0x16ea('0x13')],{});db[_0x16ea('0x46')]['belongsTo'](db['MailQueue'],{});db[_0x16ea('0x17d')][_0x16ea('0x116')](db['DashboardItem'],{'as':_0x16ea('0x17e'),'onDelete':'cascade'});db[_0x16ea('0x4a')][_0x16ea('0x116')](db[_0x16ea('0x7e')],{'as':_0x16ea('0x16d'),'foreignKey':_0x16ea('0x17f'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0x4a')][_0x16ea('0x116')](db['CannedAnswer'],{'as':_0x16ea('0x16f'),'foreignKey':_0x16ea('0x17f')});db['FaxAccount']['hasMany'](db[_0x16ea('0x4d')],{'as':'Interactions'});db[_0x16ea('0x4a')][_0x16ea('0x116')](db[_0x16ea('0x180')],{'as':'Applications','foreignKey':'FaxAccountId','onDelete':_0x16ea('0x112')});db[_0x16ea('0x4a')][_0x16ea('0x116')](db[_0x16ea('0x1a')],{'as':_0x16ea('0x181'),'onDelete':_0x16ea('0x112')});db['FaxAccount']['hasMany'](db[_0x16ea('0x4e')],{'as':'Messages'});db['FaxAccount'][_0x16ea('0x128')](db['Trunk'],{'as':'Trunk'});db[_0x16ea('0x4a')]['belongsTo'](db[_0x16ea('0xf6')],{'as':_0x16ea('0x17c'),'foreignKey':_0x16ea('0x171')});db[_0x16ea('0x4a')][_0x16ea('0x128')](db[_0x16ea('0x84')],{'as':_0x16ea('0x159'),'foreignKey':_0x16ea('0x182')});db['FaxAccount'][_0x16ea('0x12c')](db['User'],{'as':_0x16ea('0x15b'),'through':_0x16ea('0x144')});db[_0x16ea('0x180')]['belongsTo'](db[_0x16ea('0x13')],{'onDelete':'restrict'});db[_0x16ea('0x180')]['belongsTo'](db[_0x16ea('0x50')],{'onDelete':'restrict'});db[_0x16ea('0x180')]['belongsTo'](db['FaxAccount'],{'onDelete':'restrict'});db[_0x16ea('0x180')][_0x16ea('0x128')](db['Tag'],{'onDelete':_0x16ea('0x16b'),'foreignKey':'TagId'});db['FaxInteraction'][_0x16ea('0x116')](db[_0x16ea('0x4e')],{'as':_0x16ea('0x160'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x183')});db[_0x16ea('0x4d')][_0x16ea('0x128')](db[_0x16ea('0x4a')],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x17f')});db[_0x16ea('0x4d')][_0x16ea('0x128')](db['CmContact'],{'as':_0x16ea('0x165'),'foreignKey':_0x16ea('0x166')});db[_0x16ea('0x4d')][_0x16ea('0x128')](db['User'],{'as':'Owner','foreignKey':_0x16ea('0x113')});db[_0x16ea('0x4d')]['belongsToMany'](db[_0x16ea('0x8c')],{'through':_0x16ea('0x184'),'as':'Tags'});db[_0x16ea('0x4d')][_0x16ea('0x12c')](db[_0x16ea('0x8c')],{'through':_0x16ea('0x184'),'as':_0x16ea('0x178')});db['FaxInteraction'][_0x16ea('0x12c')](db[_0x16ea('0x13')],{'as':_0x16ea('0x179'),'through':_0x16ea('0x135'),'foreignKey':_0x16ea('0x183')});db[_0x16ea('0x4e')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'onDelete':_0x16ea('0x112'),'as':_0x16ea('0x13')});db[_0x16ea('0x4e')][_0x16ea('0x128')](db[_0x16ea('0x4d')],{'as':_0x16ea('0x17a'),'foreignKey':'FaxInteractionId'});db[_0x16ea('0x4e')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'onDelete':'cascade','as':_0x16ea('0x165')});db['FaxMessage'][_0x16ea('0x128')](db[_0x16ea('0xea')],{'as':_0x16ea('0xea'),'foreignKey':'AttachmentId'});db[_0x16ea('0x4e')][_0x16ea('0x128')](db[_0x16ea('0x4a')],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x17f')});db[_0x16ea('0x50')][_0x16ea('0x12c')](db[_0x16ea('0x13')],{'as':_0x16ea('0x15b'),'through':_0x16ea('0x35')});db['FaxQueue'][_0x16ea('0x12c')](db[_0x16ea('0x131')],{'through':_0x16ea('0x185'),'as':_0x16ea('0x15c')});db[_0x16ea('0x52')]['belongsTo'](db[_0x16ea('0x4a')],{});db[_0x16ea('0x52')]['belongsTo'](db[_0x16ea('0xf6')],{'as':'List','foreignKey':_0x16ea('0x171')});db[_0x16ea('0x52')]['belongsTo'](db[_0x16ea('0x71')],{'as':'Contact','foreignKey':_0x16ea('0x166')});db[_0x16ea('0x52')][_0x16ea('0x128')](db[_0x16ea('0x4d')],{});db['FaxQueueReport'][_0x16ea('0x128')](db['FaxMessage'],{});db[_0x16ea('0x52')][_0x16ea('0x128')](db[_0x16ea('0x13')],{});db['FaxQueueReport'][_0x16ea('0x128')](db['FaxQueue'],{});db[_0x16ea('0x54')][_0x16ea('0x116')](db[_0x16ea('0x7e')],{'as':_0x16ea('0x16d'),'foreignKey':_0x16ea('0x186'),'onDelete':'cascade'});db['SmsAccount'][_0x16ea('0x116')](db[_0x16ea('0x16e')],{'as':_0x16ea('0x16f'),'foreignKey':_0x16ea('0x186')});db[_0x16ea('0x54')][_0x16ea('0x116')](db[_0x16ea('0x57')],{'as':_0x16ea('0x160'),'foreignKey':'SmsAccountId'});db[_0x16ea('0x54')][_0x16ea('0x116')](db[_0x16ea('0x136')],{'as':_0x16ea('0x170')});db[_0x16ea('0x54')][_0x16ea('0x116')](db['SmsApplication'],{'as':_0x16ea('0x14d'),'foreignKey':_0x16ea('0x186'),'onDelete':_0x16ea('0x112')});db['SmsAccount']['belongsTo'](db[_0x16ea('0xf6')],{'as':_0x16ea('0x17c'),'foreignKey':_0x16ea('0x171')});db[_0x16ea('0x54')][_0x16ea('0x128')](db[_0x16ea('0x84')],{'as':'mandatoryDispositionPause','foreignKey':_0x16ea('0x182')});db[_0x16ea('0x54')]['belongsToMany'](db[_0x16ea('0x13')],{'as':_0x16ea('0x15b'),'through':'user_has_sms_accounts'});db[_0x16ea('0x187')]['belongsTo'](db[_0x16ea('0x13')],{'onDelete':_0x16ea('0x16b')});db[_0x16ea('0x187')]['belongsTo'](db['SmsQueue'],{'onDelete':'restrict'});db[_0x16ea('0x187')][_0x16ea('0x128')](db[_0x16ea('0x54')],{'onDelete':_0x16ea('0x16b')});db[_0x16ea('0x187')][_0x16ea('0x128')](db[_0x16ea('0x82')],{'onDelete':_0x16ea('0x16b'),'foreignKey':_0x16ea('0x158')});db['SmsApplication'][_0x16ea('0x128')](db[_0x16ea('0x8c')],{'onDelete':_0x16ea('0x16b'),'foreignKey':_0x16ea('0x188')});db['SmsInteraction'][_0x16ea('0x116')](db[_0x16ea('0x57')],{'as':_0x16ea('0x160'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x189')});db[_0x16ea('0x136')][_0x16ea('0x128')](db[_0x16ea('0x54')],{'as':'Account','foreignKey':_0x16ea('0x186')});db[_0x16ea('0x136')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'as':'Contact','foreignKey':_0x16ea('0x166')});db[_0x16ea('0x136')][_0x16ea('0x128')](db['User'],{'as':_0x16ea('0x18a'),'foreignKey':'UserId'});db['SmsInteraction']['belongsToMany'](db[_0x16ea('0x8c')],{'through':_0x16ea('0x18b'),'as':_0x16ea('0x176')});db[_0x16ea('0x136')][_0x16ea('0x12c')](db[_0x16ea('0x8c')],{'through':_0x16ea('0x18b'),'as':'ThroughTags'});db[_0x16ea('0x136')][_0x16ea('0x12c')](db[_0x16ea('0x13')],{'as':_0x16ea('0x179'),'through':_0x16ea('0x18c'),'foreignKey':'SmsInteractionId'});db[_0x16ea('0x57')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'as':_0x16ea('0x13')});db[_0x16ea('0x57')][_0x16ea('0x128')](db['CmContact'],{'onDelete':_0x16ea('0x112'),'as':_0x16ea('0x165')});db['SmsMessage'][_0x16ea('0x128')](db[_0x16ea('0x136')],{'onDelete':_0x16ea('0x112'),'as':_0x16ea('0x17a'),'foreignKey':_0x16ea('0x189')});db['SmsMessage'][_0x16ea('0x128')](db[_0x16ea('0x54')],{'as':_0x16ea('0x175'),'foreignKey':'SmsAccountId'});db[_0x16ea('0x59')][_0x16ea('0x12c')](db['User'],{'as':_0x16ea('0x15b'),'through':_0x16ea('0x37'),'foreignKey':_0x16ea('0x18d')});db[_0x16ea('0x59')]['belongsToMany'](db[_0x16ea('0x131')],{'through':_0x16ea('0x18e'),'as':_0x16ea('0x15c')});db[_0x16ea('0x5b')][_0x16ea('0x116')](db[_0x16ea('0x7e')],{'as':_0x16ea('0x16d'),'foreignKey':'OpenchannelAccountId','onDelete':_0x16ea('0x112')});db['OpenchannelAccount'][_0x16ea('0x116')](db[_0x16ea('0x16e')],{'as':_0x16ea('0x16f'),'foreignKey':_0x16ea('0x18f')});db[_0x16ea('0x5b')][_0x16ea('0x116')](db['OpenchannelInteraction'],{'as':_0x16ea('0x170'),'foreignKey':'OpenchannelAccountId'});db[_0x16ea('0x5b')]['hasMany'](db[_0x16ea('0x60')],{'as':_0x16ea('0x160'),'foreignKey':_0x16ea('0x18f')});db[_0x16ea('0x5b')][_0x16ea('0x116')](db[_0x16ea('0x5d')],{'as':'Applications','foreignKey':_0x16ea('0x18f'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0x5b')][_0x16ea('0x128')](db[_0x16ea('0xf6')],{'as':'List','foreignKey':_0x16ea('0x171')});db[_0x16ea('0x5b')]['belongsTo'](db[_0x16ea('0x84')],{'as':_0x16ea('0x159'),'foreignKey':_0x16ea('0x182')});db[_0x16ea('0x5b')][_0x16ea('0x12c')](db[_0x16ea('0x13')],{'as':'Agents','through':'user_has_openchannel_accounts'});db[_0x16ea('0x5d')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'onDelete':_0x16ea('0x16b')});db[_0x16ea('0x5d')][_0x16ea('0x128')](db[_0x16ea('0x62')],{'onDelete':_0x16ea('0x16b'),'foreignKey':_0x16ea('0x190')});db[_0x16ea('0x5d')][_0x16ea('0x128')](db[_0x16ea('0x5b')],{'onDelete':_0x16ea('0x16b'),'foreignKey':_0x16ea('0x18f')});db[_0x16ea('0x5d')]['belongsTo'](db[_0x16ea('0x82')],{'onDelete':_0x16ea('0x16b'),'foreignKey':_0x16ea('0x158')});db[_0x16ea('0x5d')][_0x16ea('0x128')](db[_0x16ea('0x8c')],{'onDelete':_0x16ea('0x16b'),'foreignKey':_0x16ea('0x188')});db[_0x16ea('0x5f')][_0x16ea('0x116')](db[_0x16ea('0x60')],{'as':_0x16ea('0x160'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x191')});db[_0x16ea('0x5f')][_0x16ea('0x128')](db['OpenchannelAccount'],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x18f')});db[_0x16ea('0x5f')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'as':_0x16ea('0x165'),'foreignKey':_0x16ea('0x166')});db[_0x16ea('0x5f')]['belongsTo'](db[_0x16ea('0x13')],{'as':_0x16ea('0x18a'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x5f')]['belongsToMany'](db['Tag'],{'through':'openchannel_interaction_has_tags','as':_0x16ea('0x176')});db[_0x16ea('0x5f')][_0x16ea('0x12c')](db['Tag'],{'through':_0x16ea('0x192'),'as':'ThroughTags'});db['OpenchannelInteraction'][_0x16ea('0x12c')](db[_0x16ea('0x13')],{'as':_0x16ea('0x179'),'through':'user_has_openchannel_interactions','foreignKey':_0x16ea('0x191')});db[_0x16ea('0x60')]['belongsTo'](db[_0x16ea('0x13')],{'onDelete':_0x16ea('0x112'),'as':'User'});db[_0x16ea('0x60')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'onDelete':_0x16ea('0x112'),'as':'Contact'});db[_0x16ea('0x60')][_0x16ea('0x128')](db['OpenchannelInteraction'],{'onDelete':_0x16ea('0x112'),'as':'Interaction','foreignKey':_0x16ea('0x191')});db['OpenchannelMessage'][_0x16ea('0x128')](db[_0x16ea('0xea')],{'as':_0x16ea('0xea'),'foreignKey':'AttachmentId'});db['OpenchannelMessage'][_0x16ea('0x128')](db['OpenchannelAccount'],{'as':'Account','foreignKey':_0x16ea('0x18f')});db['OpenchannelQueue'][_0x16ea('0x12c')](db[_0x16ea('0x13')],{'as':_0x16ea('0x15b'),'through':_0x16ea('0x140'),'foreignKey':_0x16ea('0x190')});db[_0x16ea('0x62')][_0x16ea('0x12c')](db[_0x16ea('0x131')],{'through':_0x16ea('0x193'),'as':_0x16ea('0x15c')});db['ChatWebsite'][_0x16ea('0x116')](db[_0x16ea('0x7e')],{'as':_0x16ea('0x16d'),'foreignKey':_0x16ea('0x194'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0x64')][_0x16ea('0x116')](db[_0x16ea('0x16e')],{'as':_0x16ea('0x16f'),'foreignKey':'ChatWebsiteId'});db[_0x16ea('0x64')][_0x16ea('0x116')](db[_0x16ea('0x195')],{'as':_0x16ea('0x196')});db[_0x16ea('0x64')][_0x16ea('0x116')](db['ChatInteraction'],{'as':'Interactions'});db[_0x16ea('0x64')][_0x16ea('0x116')](db[_0x16ea('0x67')],{'as':_0x16ea('0x14d'),'foreignKey':'ChatWebsiteId','onDelete':'cascade'});db[_0x16ea('0x64')][_0x16ea('0x116')](db[_0x16ea('0x6b')],{'as':_0x16ea('0x160')});db[_0x16ea('0x64')]['belongsTo'](db[_0x16ea('0xf6')],{'as':_0x16ea('0x17c'),'foreignKey':_0x16ea('0x171')});db[_0x16ea('0x64')][_0x16ea('0x128')](db['Interval'],{'as':_0x16ea('0x82'),'foreignKey':_0x16ea('0x158')});db[_0x16ea('0x64')]['belongsTo'](db[_0x16ea('0x167')],{'as':'MailAccount','foreignKey':'MailAccountId'});db[_0x16ea('0x64')][_0x16ea('0x128')](db[_0x16ea('0x84')],{'as':_0x16ea('0x159'),'foreignKey':'mandatoryDispositionPauseId'});db[_0x16ea('0x64')][_0x16ea('0x12c')](db[_0x16ea('0x13')],{'as':'Agents','through':_0x16ea('0x143')});db[_0x16ea('0x197')]['belongsTo'](db[_0x16ea('0x5b')],{});db['OpenchannelQueueReport'][_0x16ea('0x128')](db[_0x16ea('0xf6')],{'as':'List','foreignKey':'ListId'});db[_0x16ea('0x197')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'as':_0x16ea('0x165'),'foreignKey':_0x16ea('0x166')});db[_0x16ea('0x197')][_0x16ea('0x128')](db[_0x16ea('0x5f')],{});db[_0x16ea('0x197')][_0x16ea('0x128')](db[_0x16ea('0x60')],{});db[_0x16ea('0x197')][_0x16ea('0x128')](db[_0x16ea('0x13')],{});db[_0x16ea('0x197')][_0x16ea('0x128')](db[_0x16ea('0x62')],{});db['ChatApplication'][_0x16ea('0x128')](db[_0x16ea('0x13')],{'as':_0x16ea('0x198'),'foreignKey':_0x16ea('0x113'),'onDelete':_0x16ea('0x16b')});db[_0x16ea('0x67')]['belongsTo'](db['ChatQueue'],{'as':_0x16ea('0x199'),'foreignKey':_0x16ea('0x19a'),'onDelete':_0x16ea('0x16b')});db[_0x16ea('0x67')][_0x16ea('0x128')](db['ChatWebsite'],{'as':_0x16ea('0x19b'),'foreignKey':_0x16ea('0x194'),'onDelete':'restrict'});db[_0x16ea('0x67')]['belongsTo'](db[_0x16ea('0x8c')],{'onDelete':_0x16ea('0x16b'),'foreignKey':_0x16ea('0x188')});db[_0x16ea('0x69')][_0x16ea('0x116')](db[_0x16ea('0x6b')],{'as':_0x16ea('0x160'),'onDelete':'cascade','foreignKey':_0x16ea('0x19c')});db[_0x16ea('0x69')]['belongsTo'](db[_0x16ea('0x64')],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x194')});db[_0x16ea('0x69')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'as':_0x16ea('0x165'),'foreignKey':'ContactId'});db['ChatInteraction'][_0x16ea('0x128')](db[_0x16ea('0x13')],{'as':'Owner','foreignKey':'UserId'});db[_0x16ea('0x69')][_0x16ea('0x12c')](db[_0x16ea('0x8c')],{'through':_0x16ea('0x19d'),'as':_0x16ea('0x176')});db['ChatInteraction'][_0x16ea('0x12c')](db[_0x16ea('0x8c')],{'through':'chat_interaction_has_tags','as':'ThroughTags'});db[_0x16ea('0x69')]['belongsToMany'](db[_0x16ea('0x13')],{'as':'Users','through':'user_has_chat_interactions','foreignKey':_0x16ea('0x19c')});db[_0x16ea('0x6b')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'onDelete':_0x16ea('0x112'),'as':_0x16ea('0x13')});db[_0x16ea('0x6b')][_0x16ea('0x128')](db['CmContact'],{'onDelete':_0x16ea('0x112'),'as':_0x16ea('0x165'),'foreignKey':_0x16ea('0x166')});db[_0x16ea('0x6b')][_0x16ea('0x128')](db[_0x16ea('0x69')],{'onDelete':_0x16ea('0x112'),'as':_0x16ea('0x17a'),'foreignKey':_0x16ea('0x19c')});db['ChatMessage'][_0x16ea('0x128')](db['Attachment'],{'as':_0x16ea('0xea'),'foreignKey':_0x16ea('0x19e')});db['ChatMessage']['belongsTo'](db[_0x16ea('0x64')],{'as':'Account','foreignKey':'ChatWebsiteId'});db['ChatOfflineMessage'][_0x16ea('0x116')](db[_0x16ea('0xea')],{'as':_0x16ea('0x19f'),'foreignKey':'ChatOfflineMessageId','onDelete':_0x16ea('0x112'),'hooks':!![]});db[_0x16ea('0x6c')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'onDelete':_0x16ea('0x112'),'as':_0x16ea('0x165'),'foreignKey':'ContactId'});db[_0x16ea('0x6c')][_0x16ea('0x128')](db[_0x16ea('0x64')],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x194')});db['ChatQueue']['belongsToMany'](db['User'],{'as':_0x16ea('0x15b'),'through':'UserChatQueue','hooks':!![]});db[_0x16ea('0x13e')][_0x16ea('0x12c')](db['Team'],{'through':_0x16ea('0x1a0'),'as':_0x16ea('0x15c')});db[_0x16ea('0x1a1')]['hasMany'](db[_0x16ea('0xd1')],{'as':_0x16ea('0x160'),'foreignKey':_0x16ea('0x1a2'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0x1a1')][_0x16ea('0x12c')](db[_0x16ea('0x13')],{'as':_0x16ea('0x14f'),'through':_0x16ea('0x1a3')});db[_0x16ea('0x195')][_0x16ea('0x128')](db[_0x16ea('0x64')],{'as':_0x16ea('0x19b'),'foreignKey':_0x16ea('0x194')});db[_0x16ea('0x6f')]['hasMany'](db['CmContact'],{'as':_0x16ea('0x12d'),'foreignKey':_0x16ea('0x1a4')});db['CmContact'][_0x16ea('0x116')](db[_0x16ea('0x8f')],{'as':'Phones','foreignKey':'CmContactId'});db[_0x16ea('0x71')][_0x16ea('0x116')](db[_0x16ea('0x73')],{'as':_0x16ea('0x126'),'foreignKey':'ContactId'});db[_0x16ea('0x71')][_0x16ea('0x116')](db[_0x16ea('0x11b')],{'as':_0x16ea('0x11c'),'foreignKey':_0x16ea('0x166')});db[_0x16ea('0x71')]['hasMany'](db[_0x16ea('0x75')],{'as':_0x16ea('0x151'),'foreignKey':_0x16ea('0x166')});db['CmContact'][_0x16ea('0x116')](db[_0x16ea('0x77')],{'as':_0x16ea('0x77'),'foreignKey':_0x16ea('0x166')});db[_0x16ea('0x71')][_0x16ea('0x116')](db[_0x16ea('0x154')],{'as':_0x16ea('0x1a5'),'foreignKey':_0x16ea('0x166')});db[_0x16ea('0x71')][_0x16ea('0x116')](db[_0x16ea('0x5f')],{'as':'OpenchannelInteractions','foreignKey':_0x16ea('0x166'),'onDelete':'restrict'});db['CmContact']['hasMany'](db[_0x16ea('0x69')],{'as':_0x16ea('0x11e'),'foreignKey':_0x16ea('0x166'),'onDelete':_0x16ea('0x16b')});db[_0x16ea('0x71')][_0x16ea('0x116')](db[_0x16ea('0x136')],{'as':'SmsInteractions','foreignKey':_0x16ea('0x166'),'onDelete':_0x16ea('0x16b')});db[_0x16ea('0x71')][_0x16ea('0x116')](db[_0x16ea('0x4d')],{'as':'FaxInteractions','foreignKey':_0x16ea('0x166'),'onDelete':_0x16ea('0x16b')});db[_0x16ea('0x71')]['hasMany'](db[_0x16ea('0x120')],{'as':_0x16ea('0x121'),'foreignKey':'ContactId','onDelete':'restrict'});db[_0x16ea('0x71')][_0x16ea('0x128')](db[_0x16ea('0x6f')],{'as':_0x16ea('0x1a6'),'foreignKey':'CompanyId'});db[_0x16ea('0x71')][_0x16ea('0x128')](db[_0x16ea('0xf6')],{'as':_0x16ea('0x17c'),'foreignKey':'ListId','onDelete':_0x16ea('0x112')});db[_0x16ea('0x71')][_0x16ea('0x12c')](db[_0x16ea('0x13')],{'as':_0x16ea('0x179'),'through':_0x16ea('0x12e')});db[_0x16ea('0x71')][_0x16ea('0x12c')](db[_0x16ea('0x8c')],{'as':_0x16ea('0x176'),'through':_0x16ea('0x1a7')});db[_0x16ea('0x71')]['belongsToMany'](db[_0x16ea('0x8c')],{'through':_0x16ea('0x1a7'),'as':'ThroughTags'});db[_0x16ea('0x73')][_0x16ea('0x116')](db[_0x16ea('0x91')],{'as':_0x16ea('0x1a8'),'foreignKey':'CmHopperId'});db[_0x16ea('0x73')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'as':_0x16ea('0x165'),'foreignKey':_0x16ea('0x166'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0x73')]['belongsTo'](db['CmList'],{'as':_0x16ea('0x17c'),'foreignKey':_0x16ea('0x171'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0x73')][_0x16ea('0x128')](db['User'],{'as':_0x16ea('0x198'),'foreignKey':'UserId'});db[_0x16ea('0x73')][_0x16ea('0x128')](db['VoiceQueue'],{'as':_0x16ea('0x199'),'foreignKey':_0x16ea('0x150'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0x73')][_0x16ea('0x128')](db[_0x16ea('0xe6')],{'as':_0x16ea('0xe6'),'foreignKey':_0x16ea('0x1a9'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0x73')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'as':_0x16ea('0x18a'),'foreignKey':_0x16ea('0x1aa')});db[_0x16ea('0x152')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'as':_0x16ea('0x165'),'foreignKey':_0x16ea('0x166'),'onDelete':'cascade'});db[_0x16ea('0x152')][_0x16ea('0x128')](db[_0x16ea('0xf6')],{'as':_0x16ea('0x17c'),'foreignKey':_0x16ea('0x171'),'onDelete':_0x16ea('0x112')});db['CmHopperBlack']['belongsTo'](db[_0x16ea('0x1d')],{'as':'Queue','foreignKey':_0x16ea('0x150'),'onDelete':_0x16ea('0x112')});db['CmHopperBlack']['belongsTo'](db[_0x16ea('0xe6')],{'as':_0x16ea('0xe6'),'foreignKey':'CampaignId','onDelete':_0x16ea('0x112')});db[_0x16ea('0x7b')][_0x16ea('0x116')](db[_0x16ea('0x80')],{'as':{'plural':'All','singular':'OneAll'},'foreignKey':_0x16ea('0x1ab'),'onDelete':_0x16ea('0x112'),'hooks':!![]});db[_0x16ea('0x7b')]['hasMany'](db[_0x16ea('0x80')],{'as':{'plural':_0x16ea('0x1ac'),'singular':_0x16ea('0x1ad')},'foreignKey':_0x16ea('0x1ae'),'onDelete':_0x16ea('0x112'),'hooks':!![]});db[_0x16ea('0x7b')][_0x16ea('0x116')](db[_0x16ea('0x79')],{'as':_0x16ea('0x1af'),'foreignKey':_0x16ea('0x1b0'),'onDelete':_0x16ea('0x112'),'hooks':!![]});db[_0x16ea('0x7e')]['hasMany'](db[_0x16ea('0x7e')],{'as':_0x16ea('0x16d'),'foreignKey':_0x16ea('0x1b1'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0x82')]['hasMany'](db[_0x16ea('0x82')],{'as':_0x16ea('0x1b2'),'foreignKey':_0x16ea('0x158'),'onDelete':'cascade','hooks':!![],'required':![]});db[_0x16ea('0x82')][_0x16ea('0x116')](db[_0x16ea('0x1a')],{'as':_0x16ea('0x11a'),'foreignKey':_0x16ea('0x158'),'onDelete':_0x16ea('0x16b')});db[_0x16ea('0x82')][_0x16ea('0x116')](db[_0x16ea('0x44')],{'as':_0x16ea('0x1b3'),'foreignKey':_0x16ea('0x158')});db[_0x16ea('0x82')]['hasMany'](db[_0x16ea('0x67')],{'as':_0x16ea('0x1b4'),'foreignKey':_0x16ea('0x158')});db[_0x16ea('0x82')][_0x16ea('0x116')](db[_0x16ea('0x180')],{'as':_0x16ea('0x1b5'),'foreignKey':_0x16ea('0x158')});db[_0x16ea('0x82')][_0x16ea('0x116')](db[_0x16ea('0x187')],{'as':'SmsApplications','foreignKey':_0x16ea('0x158')});db[_0x16ea('0x89')][_0x16ea('0x128')](db[_0x16ea('0x167')],{});db[_0x16ea('0x89')]['belongsTo'](db[_0x16ea('0x1b6')],{'foreignKey':_0x16ea('0x1b7')});db[_0x16ea('0x89')][_0x16ea('0x128')](db[_0x16ea('0x9b')],{'foreignKey':'CustomReportId'});db['Sound'][_0x16ea('0x12c')](db[_0x16ea('0x1c')],{'as':_0x16ea('0x1b8'),'through':_0x16ea('0x1b9'),'onDelete':'restrict'});db['Tag'][_0x16ea('0x12c')](db['CmContact'],{'through':_0x16ea('0x1a7')});db['Tag']['belongsToMany'](db[_0x16ea('0x69')],{'through':_0x16ea('0x19d')});db[_0x16ea('0x8c')]['belongsToMany'](db[_0x16ea('0x120')],{'through':_0x16ea('0x177')});db[_0x16ea('0x8c')][_0x16ea('0x12c')](db[_0x16ea('0x136')],{'through':_0x16ea('0x18b')});db['Tag'][_0x16ea('0x12c')](db[_0x16ea('0x4d')],{'through':_0x16ea('0x184')});db[_0x16ea('0x8c')]['belongsToMany'](db[_0x16ea('0x5f')],{'through':_0x16ea('0x192')});db['Tag']['belongsToMany'](db[_0x16ea('0x122')],{'through':'whatsapp_interaction_has_tags'});db[_0x16ea('0x8f')][_0x16ea('0x128')](db[_0x16ea('0x8d')],{'as':_0x16ea('0x1ba'),'foreignKey':_0x16ea('0x1bb')});db[_0x16ea('0x91')][_0x16ea('0x128')](db['CmHopper'],{'as':'Hopper','foreignKey':_0x16ea('0x1bc')});db[_0x16ea('0x8f')]['belongsTo'](db[_0x16ea('0x71')],{'as':_0x16ea('0x165'),'foreignKey':_0x16ea('0x1bd')});db[_0x16ea('0x94')][_0x16ea('0x116')](db[_0x16ea('0x80')],{'as':{'plural':_0x16ea('0x1be'),'singular':_0x16ea('0x1bf')},'foreignKey':_0x16ea('0x1c0'),'onDelete':'cascade','hooks':!![]});db['Trigger'][_0x16ea('0x116')](db['Condition'],{'as':{'plural':'AnyConditions','singular':'AnyCondition'},'foreignKey':_0x16ea('0x1c1'),'onDelete':'cascade','hooks':!![]});db['Trigger']['hasMany'](db[_0x16ea('0x79')],{'as':_0x16ea('0x1af'),'foreignKey':_0x16ea('0x1c2'),'onDelete':'cascade','hooks':!![]});db['AnalyticCustomReport'][_0x16ea('0x116')](db[_0x16ea('0x1c3')],{'as':'Fields','onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1c4'),'hooks':!![]});db[_0x16ea('0x1b6')][_0x16ea('0x116')](db[_0x16ea('0x1c3')],{'as':_0x16ea('0x1c5'),'onDelete':_0x16ea('0x112'),'foreignKey':'DefaultReportId'});db[_0x16ea('0x9f')][_0x16ea('0x116')](db['AnalyticFieldReport'],{'as':_0x16ea('0x1c5'),'onDelete':_0x16ea('0x112'),'foreignKey':'MetricId'});db['AnalyticFieldReport'][_0x16ea('0x128')](db[_0x16ea('0x9f')],{'foreignKey':_0x16ea('0x1c6')});db[_0x16ea('0xa4')][_0x16ea('0x116')](db[_0x16ea('0xa6')],{'as':_0x16ea('0x1c7'),'onDelete':_0x16ea('0x112'),'foreignKey':'AccountId'});db[_0x16ea('0xa6')]['hasMany'](db[_0x16ea('0xa8')],{'as':_0x16ea('0x1c8'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1c9')});db['SalesforceConfiguration'][_0x16ea('0x116')](db[_0x16ea('0xa8')],{'as':'Descriptions','onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1ca')});db[_0x16ea('0xa6')][_0x16ea('0x116')](db[_0x16ea('0xa8')],{'as':_0x16ea('0x1c5'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1cb')});db[_0x16ea('0xa6')][_0x16ea('0x128')](db['SalesforceAccount'],{'as':_0x16ea('0x175'),'foreignKey':'AccountId'});db[_0x16ea('0xa8')][_0x16ea('0x116')](db[_0x16ea('0xa8')],{'as':_0x16ea('0x1cc'),'foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0xa8')][_0x16ea('0x116')](db[_0x16ea('0xa8')],{'as':_0x16ea('0x1cd'),'foreignKey':'DescriptionId'});db[_0x16ea('0xa8')][_0x16ea('0x116')](db[_0x16ea('0xa8')],{'as':_0x16ea('0x1ce'),'foreignKey':_0x16ea('0x1cb')});db['SalesforceField']['belongsTo'](db[_0x16ea('0x96')],{'as':_0x16ea('0x96'),'foreignKey':'VariableId'});db['SugarcrmAccount'][_0x16ea('0x116')](db[_0x16ea('0xab')],{'as':_0x16ea('0x1c7'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1cf')});db[_0x16ea('0xab')][_0x16ea('0x116')](db['SugarcrmField'],{'as':_0x16ea('0x1c8'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0xab')][_0x16ea('0x116')](db[_0x16ea('0x1d0')],{'as':'Descriptions','onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1ca')});db['SugarcrmConfiguration'][_0x16ea('0x116')](db[_0x16ea('0x1d0')],{'as':_0x16ea('0x1c5'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1cb')});db[_0x16ea('0xab')]['belongsTo'](db[_0x16ea('0xa9')],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x1cf')});db[_0x16ea('0x1d0')][_0x16ea('0x116')](db[_0x16ea('0x1d0')],{'as':_0x16ea('0x1cc'),'foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0x1d0')][_0x16ea('0x116')](db[_0x16ea('0x1d0')],{'as':_0x16ea('0x1cd'),'foreignKey':_0x16ea('0x1ca')});db[_0x16ea('0x1d0')][_0x16ea('0x116')](db[_0x16ea('0x1d0')],{'as':'Field','foreignKey':'FieldId'});db[_0x16ea('0x1d0')]['belongsTo'](db[_0x16ea('0x96')],{'as':'Variable','foreignKey':_0x16ea('0x1d1')});db[_0x16ea('0x1d2')]['hasMany'](db[_0x16ea('0x1d3')],{'as':_0x16ea('0x1c7'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1cf')});db[_0x16ea('0x1d3')][_0x16ea('0x116')](db[_0x16ea('0xac')],{'as':_0x16ea('0x1c8'),'onDelete':'cascade','foreignKey':'SubjectId'});db['DeskConfiguration']['hasMany'](db[_0x16ea('0xac')],{'as':_0x16ea('0x1d4'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1ca')});db['DeskConfiguration'][_0x16ea('0x116')](db[_0x16ea('0xac')],{'as':_0x16ea('0x1c5'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1cb')});db['DeskConfiguration'][_0x16ea('0x128')](db['DeskAccount'],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x1cf')});db[_0x16ea('0x1d3')][_0x16ea('0x12c')](db[_0x16ea('0x8c')],{'through':_0x16ea('0x1d5')});db[_0x16ea('0xac')][_0x16ea('0x116')](db[_0x16ea('0xac')],{'as':_0x16ea('0x1cc'),'foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0xac')][_0x16ea('0x116')](db['DeskField'],{'as':'Description','foreignKey':'DescriptionId'});db[_0x16ea('0xac')][_0x16ea('0x116')](db[_0x16ea('0xac')],{'as':_0x16ea('0x1ce'),'foreignKey':_0x16ea('0x1cb')});db[_0x16ea('0xac')][_0x16ea('0x128')](db[_0x16ea('0x96')],{'as':'Variable','foreignKey':_0x16ea('0x1d1')});db[_0x16ea('0xad')][_0x16ea('0x116')](db[_0x16ea('0xaf')],{'as':_0x16ea('0x1c7'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1cf')});db['ZohoConfiguration'][_0x16ea('0x116')](db[_0x16ea('0xb1')],{'as':'Subjects','onDelete':'cascade','foreignKey':_0x16ea('0x1c9')});db['ZohoConfiguration'][_0x16ea('0x116')](db[_0x16ea('0xb1')],{'as':'Descriptions','onDelete':_0x16ea('0x112'),'foreignKey':'DescriptionId'});db[_0x16ea('0xaf')]['hasMany'](db[_0x16ea('0xb1')],{'as':_0x16ea('0x1c5'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1cb')});db[_0x16ea('0xaf')][_0x16ea('0x128')](db['ZohoAccount'],{'as':'Account','foreignKey':_0x16ea('0x1cf')});db[_0x16ea('0xb1')][_0x16ea('0x116')](db[_0x16ea('0xb1')],{'as':_0x16ea('0x1cc'),'foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0xb1')][_0x16ea('0x116')](db[_0x16ea('0xb1')],{'as':_0x16ea('0x1cd'),'foreignKey':_0x16ea('0x1ca')});db[_0x16ea('0xb1')][_0x16ea('0x116')](db['ZohoField'],{'as':_0x16ea('0x1ce'),'foreignKey':_0x16ea('0x1cb')});db[_0x16ea('0xb1')][_0x16ea('0x128')](db[_0x16ea('0x96')],{'as':_0x16ea('0x96'),'foreignKey':_0x16ea('0x1d1')});db[_0x16ea('0x1d6')]['hasMany'](db[_0x16ea('0xb4')],{'as':'Configurations','onDelete':'cascade','foreignKey':_0x16ea('0x1cf')});db[_0x16ea('0xb4')][_0x16ea('0x116')](db[_0x16ea('0xb6')],{'as':'Subjects','foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0xb4')][_0x16ea('0x116')](db['ZendeskField'],{'as':_0x16ea('0x1d4'),'foreignKey':_0x16ea('0x1ca')});db[_0x16ea('0xb4')][_0x16ea('0x116')](db[_0x16ea('0xb6')],{'as':_0x16ea('0x1c5'),'foreignKey':_0x16ea('0x1cb')});db[_0x16ea('0xb4')][_0x16ea('0x128')](db['ZendeskAccount'],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x1cf')});db[_0x16ea('0xb4')][_0x16ea('0x12c')](db[_0x16ea('0x8c')],{'through':_0x16ea('0x1d7')});db[_0x16ea('0xb6')]['hasMany'](db[_0x16ea('0xb6')],{'as':_0x16ea('0x1cc'),'foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0xb6')]['hasMany'](db[_0x16ea('0xb6')],{'as':_0x16ea('0x1cd'),'foreignKey':_0x16ea('0x1ca')});db['ZendeskField'][_0x16ea('0x116')](db[_0x16ea('0xb6')],{'as':_0x16ea('0x1ce'),'foreignKey':_0x16ea('0x1cb')});db[_0x16ea('0xb6')][_0x16ea('0x128')](db[_0x16ea('0x96')],{'as':_0x16ea('0x96'),'foreignKey':_0x16ea('0x1d1')});db[_0x16ea('0x1d8')][_0x16ea('0x116')](db['FreshdeskConfiguration'],{'as':'Configurations','onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1cf')});db[_0x16ea('0xb8')][_0x16ea('0x116')](db['FreshdeskField'],{'as':_0x16ea('0x1c8'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0xb8')][_0x16ea('0x116')](db[_0x16ea('0xba')],{'as':_0x16ea('0x1d4'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1ca')});db[_0x16ea('0xb8')][_0x16ea('0x116')](db[_0x16ea('0xba')],{'as':'Fields','onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1cb')});db[_0x16ea('0xb8')][_0x16ea('0x128')](db['FreshdeskAccount'],{'as':'Account','foreignKey':'AccountId'});db[_0x16ea('0xb8')]['belongsToMany'](db[_0x16ea('0x8c')],{'through':_0x16ea('0x1d9')});db['FreshdeskField'][_0x16ea('0x116')](db['FreshdeskField'],{'as':'Subject','foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0xba')][_0x16ea('0x116')](db['FreshdeskField'],{'as':_0x16ea('0x1cd'),'foreignKey':_0x16ea('0x1ca')});db[_0x16ea('0xba')][_0x16ea('0x116')](db[_0x16ea('0xba')],{'as':_0x16ea('0x1ce'),'foreignKey':_0x16ea('0x1cb')});db[_0x16ea('0xba')]['belongsTo'](db[_0x16ea('0x96')],{'as':'Variable','foreignKey':_0x16ea('0x1d1')});db['VtigerAccount'][_0x16ea('0x116')](db[_0x16ea('0x1da')],{'as':'Configurations','onDelete':'cascade','foreignKey':_0x16ea('0x1cf')});db[_0x16ea('0x1da')]['hasMany'](db['VtigerField'],{'as':_0x16ea('0x1c8'),'foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0x1da')][_0x16ea('0x116')](db[_0x16ea('0xbf')],{'as':_0x16ea('0x1d4'),'foreignKey':'DescriptionId'});db['VtigerConfiguration']['hasMany'](db[_0x16ea('0xbf')],{'as':'Fields','foreignKey':_0x16ea('0x1cb')});db[_0x16ea('0x1da')][_0x16ea('0x128')](db[_0x16ea('0xbc')],{'as':'Account','foreignKey':_0x16ea('0x1cf')});db['VtigerField'][_0x16ea('0x116')](db['VtigerField'],{'as':'Subject','foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0xbf')][_0x16ea('0x116')](db[_0x16ea('0xbf')],{'as':_0x16ea('0x1cd'),'foreignKey':'DescriptionId'});db[_0x16ea('0xbf')][_0x16ea('0x116')](db[_0x16ea('0xbf')],{'as':'Field','foreignKey':'FieldId'});db[_0x16ea('0xbf')]['belongsTo'](db['Variable'],{'as':_0x16ea('0x96'),'foreignKey':_0x16ea('0x1d1')});db[_0x16ea('0xc1')][_0x16ea('0x116')](db[_0x16ea('0x1db')],{'as':'Configurations','onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1cf')});db['ServicenowConfiguration'][_0x16ea('0x116')](db[_0x16ea('0xc4')],{'as':_0x16ea('0x1c8'),'foreignKey':'SubjectId'});db['ServicenowConfiguration']['hasMany'](db[_0x16ea('0xc4')],{'as':'Descriptions','foreignKey':_0x16ea('0x1ca')});db['ServicenowConfiguration'][_0x16ea('0x116')](db[_0x16ea('0xc4')],{'as':_0x16ea('0x1c5'),'foreignKey':_0x16ea('0x1cb')});db['ServicenowConfiguration'][_0x16ea('0x128')](db[_0x16ea('0xc1')],{'as':_0x16ea('0x175'),'foreignKey':'AccountId'});db['ServicenowField'][_0x16ea('0x116')](db[_0x16ea('0xc4')],{'as':_0x16ea('0x1cc'),'foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0xc4')][_0x16ea('0x116')](db[_0x16ea('0xc4')],{'as':_0x16ea('0x1cd'),'foreignKey':_0x16ea('0x1ca')});db[_0x16ea('0xc4')][_0x16ea('0x116')](db[_0x16ea('0xc4')],{'as':_0x16ea('0x1ce'),'foreignKey':_0x16ea('0x1cb')});db[_0x16ea('0xc4')][_0x16ea('0x128')](db[_0x16ea('0x96')],{'as':'Variable','foreignKey':_0x16ea('0x1d1')});db[_0x16ea('0xc6')][_0x16ea('0x116')](db[_0x16ea('0xc7')],{'as':'Configurations','onDelete':_0x16ea('0x112'),'foreignKey':'AccountId'});db[_0x16ea('0xc6')][_0x16ea('0x128')](db[_0x16ea('0x169')],{'as':_0x16ea('0x169'),'foreignKey':_0x16ea('0x16a')});db['Dynamics365Configuration'][_0x16ea('0x116')](db[_0x16ea('0xc9')],{'as':'Subjects','onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0xc7')][_0x16ea('0x116')](db['Dynamics365Field'],{'as':_0x16ea('0x1d4'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1ca')});db[_0x16ea('0xc7')][_0x16ea('0x116')](db[_0x16ea('0xc9')],{'as':_0x16ea('0x1c5'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1cb')});db[_0x16ea('0xc7')][_0x16ea('0x128')](db[_0x16ea('0xc6')],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x1cf')});db['Dynamics365Field'][_0x16ea('0x116')](db[_0x16ea('0xc9')],{'as':_0x16ea('0x1cc'),'foreignKey':'SubjectId'});db[_0x16ea('0xc9')][_0x16ea('0x116')](db['Dynamics365Field'],{'as':_0x16ea('0x1cd'),'foreignKey':_0x16ea('0x1ca')});db['Dynamics365Field'][_0x16ea('0x116')](db[_0x16ea('0xc9')],{'as':_0x16ea('0x1ce'),'foreignKey':_0x16ea('0x1cb')});db[_0x16ea('0xc9')]['belongsTo'](db[_0x16ea('0x96')],{'as':_0x16ea('0x96'),'foreignKey':_0x16ea('0x1d1')});db[_0x16ea('0x1dc')]['hasMany'](db[_0x16ea('0xcb')],{'as':_0x16ea('0x1c7'),'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1cf')});db[_0x16ea('0xcb')][_0x16ea('0x116')](db[_0x16ea('0xcd')],{'as':_0x16ea('0x1c8'),'foreignKey':_0x16ea('0x1c9')});db[_0x16ea('0xcb')][_0x16ea('0x116')](db[_0x16ea('0xcd')],{'as':_0x16ea('0x1d4'),'foreignKey':_0x16ea('0x1ca')});db['FreshsalesConfiguration'][_0x16ea('0x116')](db[_0x16ea('0xcd')],{'as':'Fields','foreignKey':_0x16ea('0x1cb')});db['FreshsalesConfiguration'][_0x16ea('0x128')](db[_0x16ea('0x1dc')],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x1cf')});db[_0x16ea('0xcd')]['hasMany'](db['FreshsalesField'],{'as':_0x16ea('0x1cc'),'foreignKey':'SubjectId'});db[_0x16ea('0xcd')]['hasMany'](db[_0x16ea('0xcd')],{'as':_0x16ea('0x1cd'),'foreignKey':_0x16ea('0x1ca')});db[_0x16ea('0xcd')][_0x16ea('0x116')](db[_0x16ea('0xcd')],{'as':_0x16ea('0x1ce'),'foreignKey':_0x16ea('0x1cb')});db['FreshsalesField'][_0x16ea('0x128')](db[_0x16ea('0x96')],{'as':'Variable','foreignKey':_0x16ea('0x1d1')});db[_0x16ea('0x1dd')][_0x16ea('0x128')](db[_0x16ea('0x64')],{});db[_0x16ea('0x1dd')][_0x16ea('0x128')](db[_0x16ea('0xf6')],{'as':_0x16ea('0x17c'),'foreignKey':_0x16ea('0x171')});db['ChatQueueReport'][_0x16ea('0x128')](db[_0x16ea('0x71')],{'as':_0x16ea('0x165'),'foreignKey':_0x16ea('0x166')});db[_0x16ea('0x1dd')][_0x16ea('0x128')](db['ChatInteraction'],{});db[_0x16ea('0x1dd')]['belongsTo'](db['ChatMessage'],{});db[_0x16ea('0x1dd')][_0x16ea('0x128')](db[_0x16ea('0x13')],{});db['ChatQueueReport']['belongsTo'](db[_0x16ea('0x13e')],{});db[_0x16ea('0xd1')]['belongsTo'](db[_0x16ea('0x13')],{'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1de')});db[_0x16ea('0xd1')]['belongsTo'](db[_0x16ea('0x13')],{'onDelete':_0x16ea('0x112'),'foreignKey':_0x16ea('0x1df')});db[_0x16ea('0x154')]['hasMany'](db[_0x16ea('0xd3')],{'foreignKey':'SessionId','onDelete':'cascade'});db[_0x16ea('0x154')]['hasMany'](db[_0x16ea('0x1e0')],{'foreignKey':_0x16ea('0x1e1'),'onDelete':'cascade'});db[_0x16ea('0xd5')]['belongsTo'](db[_0x16ea('0x54')],{});db[_0x16ea('0xd5')][_0x16ea('0x128')](db[_0x16ea('0xf6')],{'as':_0x16ea('0x17c'),'foreignKey':_0x16ea('0x171')});db[_0x16ea('0xd5')]['belongsTo'](db[_0x16ea('0x71')],{'as':_0x16ea('0x165'),'foreignKey':_0x16ea('0x166')});db[_0x16ea('0xd5')][_0x16ea('0x128')](db['SmsInteraction'],{});db[_0x16ea('0xd5')][_0x16ea('0x128')](db['SmsMessage'],{});db['SmsQueueReport']['belongsTo'](db[_0x16ea('0x13')],{});db[_0x16ea('0xd5')][_0x16ea('0x128')](db[_0x16ea('0x59')],{});db['JscriptyProject']['hasMany'](db[_0x16ea('0x154')],{'foreignKey':_0x16ea('0x1e2')});db[_0x16ea('0xdb')][_0x16ea('0x116')](db[_0x16ea('0xd3')],{'foreignKey':_0x16ea('0x1e2')});db['JscriptyProject'][_0x16ea('0x116')](db[_0x16ea('0x1e0')],{'foreignKey':'ProjectId'});db[_0x16ea('0x131')][_0x16ea('0x12c')](db[_0x16ea('0x13')],{'as':_0x16ea('0x15b'),'through':_0x16ea('0x132')});db[_0x16ea('0x131')][_0x16ea('0x12c')](db[_0x16ea('0x1d')],{'through':_0x16ea('0x15d'),'as':_0x16ea('0x13b')});db[_0x16ea('0x131')][_0x16ea('0x12c')](db['MailQueue'],{'through':'team_has_mail_queues','as':_0x16ea('0x13d')});db['Team']['belongsToMany'](db[_0x16ea('0x13e')],{'through':'team_has_chat_queues','as':_0x16ea('0x1e3')});db[_0x16ea('0x131')]['belongsToMany'](db['FaxQueue'],{'through':_0x16ea('0x185'),'as':'FaxQueues'});db[_0x16ea('0x131')][_0x16ea('0x12c')](db[_0x16ea('0x59')],{'through':_0x16ea('0x18e'),'as':_0x16ea('0x1e4')});db[_0x16ea('0x131')][_0x16ea('0x12c')](db[_0x16ea('0x62')],{'through':_0x16ea('0x193'),'as':_0x16ea('0x13f')});db[_0x16ea('0x131')][_0x16ea('0x12c')](db[_0x16ea('0x108')],{'through':_0x16ea('0x1e5'),'as':_0x16ea('0x141')});db['Team'][_0x16ea('0x12c')](db[_0x16ea('0xf8')],{'through':_0x16ea('0x10c'),'as':_0x16ea('0x13c')});db['Campaign'][_0x16ea('0x116')](db[_0x16ea('0x73')],{'as':_0x16ea('0x126'),'foreignKey':_0x16ea('0x1a9')});db[_0x16ea('0xe6')]['hasMany'](db[_0x16ea('0x11b')],{'as':_0x16ea('0x11c'),'foreignKey':'CampaignId'});db[_0x16ea('0xe6')][_0x16ea('0x116')](db[_0x16ea('0x75')],{'as':_0x16ea('0x151'),'foreignKey':_0x16ea('0x1a9')});db['Campaign']['hasMany'](db[_0x16ea('0x152')],{'as':_0x16ea('0x153'),'foreignKey':_0x16ea('0x1a9')});db[_0x16ea('0xe6')]['belongsTo'](db[_0x16ea('0x2a')],{'as':_0x16ea('0x2a'),'foreignKey':'TrunkId'});db['Campaign'][_0x16ea('0x128')](db[_0x16ea('0x2a')],{'as':_0x16ea('0x156'),'foreignKey':_0x16ea('0x157')});db[_0x16ea('0xe6')]['belongsTo'](db[_0x16ea('0x82')],{'as':'Interval','foreignKey':'IntervalId'});db[_0x16ea('0xe6')][_0x16ea('0x128')](db[_0x16ea('0xe0')],{'as':_0x16ea('0xe0'),'foreignKey':'SquareProjectId'});db[_0x16ea('0xe6')][_0x16ea('0x12c')](db[_0x16ea('0xf6')],{'as':_0x16ea('0x12f'),'through':_0x16ea('0x1e6')});db[_0x16ea('0xe6')][_0x16ea('0x12c')](db[_0x16ea('0xf6')],{'as':_0x16ea('0x15e'),'through':_0x16ea('0x1e7')});db[_0x16ea('0xea')][_0x16ea('0x128')](db[_0x16ea('0x6c')],{'as':_0x16ea('0x6c'),'foreignKey':_0x16ea('0x17b')});db[_0x16ea('0xed')][_0x16ea('0x128')](db[_0x16ea('0x42')],{});db['MailTransferReport'][_0x16ea('0x128')](db[_0x16ea('0x120')],{});db[_0x16ea('0xed')]['belongsTo'](db['MailAccount'],{'foreignKey':'FromMailAccountId','as':_0x16ea('0x1e8')});db[_0x16ea('0xed')]['belongsTo'](db[_0x16ea('0x13')],{'foreignKey':_0x16ea('0x1e9'),'as':_0x16ea('0x1ea')});db[_0x16ea('0xed')][_0x16ea('0x128')](db['User'],{'foreignKey':_0x16ea('0x1eb'),'as':_0x16ea('0x1ec')});db[_0x16ea('0xed')][_0x16ea('0x128')](db[_0x16ea('0x3e')],{'foreignKey':'ToMailQueueId','as':_0x16ea('0x1ed')});db[_0x16ea('0xed')][_0x16ea('0x128')](db['MailAccount'],{'foreignKey':_0x16ea('0x1ee'),'as':_0x16ea('0x1ef')});db[_0x16ea('0xef')]['belongsTo'](db['ChatMessage'],{});db[_0x16ea('0xef')][_0x16ea('0x128')](db['ChatInteraction'],{});db['ChatTransferReport'][_0x16ea('0x128')](db[_0x16ea('0x64')],{'foreignKey':_0x16ea('0x1f0'),'as':_0x16ea('0x1e8')});db['ChatTransferReport'][_0x16ea('0x128')](db[_0x16ea('0x13')],{'foreignKey':_0x16ea('0x1e9'),'as':'FromAgent'});db[_0x16ea('0xef')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'foreignKey':_0x16ea('0x1eb'),'as':_0x16ea('0x1ec')});db[_0x16ea('0xef')][_0x16ea('0x128')](db[_0x16ea('0x13e')],{'foreignKey':_0x16ea('0x1f1'),'as':'ToQueue'});db[_0x16ea('0xef')][_0x16ea('0x128')](db[_0x16ea('0x64')],{'foreignKey':_0x16ea('0x1f2'),'as':_0x16ea('0x1ef')});db[_0x16ea('0xf1')]['belongsTo'](db[_0x16ea('0x4e')],{});db[_0x16ea('0xf1')]['belongsTo'](db[_0x16ea('0x4d')],{});db[_0x16ea('0xf1')]['belongsTo'](db[_0x16ea('0x4a')],{'foreignKey':'FromFaxAccountId','as':_0x16ea('0x1e8')});db['FaxTransferReport']['belongsTo'](db[_0x16ea('0x13')],{'foreignKey':_0x16ea('0x1e9'),'as':'FromAgent'});db[_0x16ea('0xf1')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'foreignKey':_0x16ea('0x1eb'),'as':_0x16ea('0x1ec')});db[_0x16ea('0xf1')][_0x16ea('0x128')](db['FaxQueue'],{'foreignKey':_0x16ea('0x1f3'),'as':_0x16ea('0x1ed')});db[_0x16ea('0xf1')][_0x16ea('0x128')](db[_0x16ea('0x4a')],{'foreignKey':_0x16ea('0x1f4'),'as':_0x16ea('0x1ef')});db[_0x16ea('0xf3')][_0x16ea('0x128')](db[_0x16ea('0x60')],{});db[_0x16ea('0xf3')][_0x16ea('0x128')](db[_0x16ea('0x5f')],{});db[_0x16ea('0xf3')][_0x16ea('0x128')](db[_0x16ea('0x5b')],{'foreignKey':_0x16ea('0x1f5'),'as':'FromAccount'});db['OpenchannelTransferReport'][_0x16ea('0x128')](db[_0x16ea('0x13')],{'foreignKey':'FromUserId','as':_0x16ea('0x1ea')});db[_0x16ea('0xf3')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'foreignKey':_0x16ea('0x1eb'),'as':'ToAgent'});db[_0x16ea('0xf3')][_0x16ea('0x128')](db['OpenchannelQueue'],{'foreignKey':_0x16ea('0x1f6'),'as':'ToQueue'});db[_0x16ea('0xf3')][_0x16ea('0x128')](db['OpenchannelAccount'],{'foreignKey':_0x16ea('0x1f7'),'as':'ToAccount'});db[_0x16ea('0xf5')]['belongsTo'](db['SmsMessage'],{});db[_0x16ea('0xf5')]['belongsTo'](db[_0x16ea('0x136')],{});db[_0x16ea('0xf5')][_0x16ea('0x128')](db['SmsAccount'],{'foreignKey':_0x16ea('0x1f8'),'as':_0x16ea('0x1e8')});db[_0x16ea('0xf5')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'foreignKey':'FromUserId','as':_0x16ea('0x1ea')});db[_0x16ea('0xf5')][_0x16ea('0x128')](db['User'],{'foreignKey':'ToUserId','as':_0x16ea('0x1ec')});db[_0x16ea('0xf5')][_0x16ea('0x128')](db[_0x16ea('0x59')],{'foreignKey':_0x16ea('0x1f9'),'as':_0x16ea('0x1ed')});db[_0x16ea('0xf5')][_0x16ea('0x128')](db['SmsAccount'],{'foreignKey':'ToSmsAccountId','as':'ToAccount'});db[_0x16ea('0xf6')][_0x16ea('0x116')](db[_0x16ea('0x7e')],{'as':_0x16ea('0x16d'),'foreignKey':_0x16ea('0x171'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0xf6')][_0x16ea('0x116')](db[_0x16ea('0x1fa')],{'as':_0x16ea('0x1fb'),'foreignKey':_0x16ea('0x171')});db[_0x16ea('0xf6')][_0x16ea('0x116')](db[_0x16ea('0x71')],{'as':_0x16ea('0x12d'),'onDelete':'cascade','foreignKey':_0x16ea('0x171')});db[_0x16ea('0xf6')][_0x16ea('0x116')](db[_0x16ea('0x11b')],{'as':_0x16ea('0x11c'),'foreignKey':_0x16ea('0x171')});db[_0x16ea('0xf6')][_0x16ea('0x116')](db[_0x16ea('0x75')],{'as':_0x16ea('0x11d'),'foreignKey':'ListId'});db[_0x16ea('0xf6')]['hasMany'](db['ReportAgentPreview'],{'as':_0x16ea('0x77'),'foreignKey':_0x16ea('0x171')});db[_0x16ea('0xf6')][_0x16ea('0x12c')](db[_0x16ea('0x1d')],{'as':_0x16ea('0x1fc'),'through':_0x16ea('0x15a')});db[_0x16ea('0xf6')][_0x16ea('0x12c')](db[_0x16ea('0x13')],{'as':_0x16ea('0x15b'),'through':_0x16ea('0x130')});db[_0x16ea('0xf8')][_0x16ea('0x116')](db[_0x16ea('0x1a')],{'as':_0x16ea('0x11a'),'onDelete':'cascade'});db['VoicePrefix'][_0x16ea('0x12c')](db['User'],{'as':_0x16ea('0x15b'),'through':'UserVoicePrefix'});db[_0x16ea('0xf8')][_0x16ea('0x12c')](db['Team'],{'through':_0x16ea('0x10c'),'as':_0x16ea('0x15c')});db[_0x16ea('0x129')]['hasMany'](db[_0x16ea('0x13')],{'as':_0x16ea('0x179'),'foreignKey':_0x16ea('0x12a')});db[_0x16ea('0x129')][_0x16ea('0x116')](db[_0x16ea('0xf9')],{'as':'UserProfileSections','foreignKey':_0x16ea('0x12a'),'onDelete':_0x16ea('0x112')});db['UserProfileSection'][_0x16ea('0x116')](db[_0x16ea('0xfb')],{'as':_0x16ea('0x1fd'),'foreignKey':_0x16ea('0x1fe'),'onDelete':_0x16ea('0x112')});db['WhatsappAccount'][_0x16ea('0x116')](db[_0x16ea('0x7e')],{'as':_0x16ea('0x16d'),'foreignKey':_0x16ea('0x1ff'),'onDelete':_0x16ea('0x112')});db[_0x16ea('0xff')][_0x16ea('0x116')](db[_0x16ea('0x16e')],{'as':_0x16ea('0x16f'),'foreignKey':_0x16ea('0x1ff')});db[_0x16ea('0xff')]['hasMany'](db[_0x16ea('0x103')],{'as':_0x16ea('0x160'),'foreignKey':_0x16ea('0x1ff')});db[_0x16ea('0xff')][_0x16ea('0x116')](db[_0x16ea('0x122')],{'as':_0x16ea('0x170')});db[_0x16ea('0xff')][_0x16ea('0x116')](db[_0x16ea('0x101')],{'as':_0x16ea('0x14d'),'foreignKey':'WhatsappAccountId','onDelete':_0x16ea('0x112')});db[_0x16ea('0xff')]['belongsTo'](db['CmList'],{'as':_0x16ea('0x17c'),'foreignKey':_0x16ea('0x171')});db[_0x16ea('0xff')][_0x16ea('0x128')](db[_0x16ea('0x84')],{'as':_0x16ea('0x159'),'foreignKey':_0x16ea('0x182')});db[_0x16ea('0xff')]['belongsToMany'](db['User'],{'as':'Agents','through':_0x16ea('0x14a')});db[_0x16ea('0x101')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'onDelete':_0x16ea('0x16b')});db['WhatsappApplication'][_0x16ea('0x128')](db['WhatsappQueue'],{'onDelete':_0x16ea('0x16b')});db[_0x16ea('0x101')][_0x16ea('0x128')](db[_0x16ea('0xff')],{'onDelete':_0x16ea('0x16b')});db['WhatsappApplication'][_0x16ea('0x128')](db[_0x16ea('0x82')],{'onDelete':'restrict','foreignKey':_0x16ea('0x158')});db[_0x16ea('0x101')][_0x16ea('0x128')](db['Tag'],{'onDelete':_0x16ea('0x16b'),'foreignKey':_0x16ea('0x188')});db[_0x16ea('0x122')][_0x16ea('0x116')](db[_0x16ea('0x103')],{'as':_0x16ea('0x160'),'onDelete':'cascade','foreignKey':'WhatsappInteractionId'});db[_0x16ea('0x122')][_0x16ea('0x128')](db['WhatsappAccount'],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x1ff')});db[_0x16ea('0x122')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'as':_0x16ea('0x165'),'foreignKey':'ContactId'});db[_0x16ea('0x122')]['belongsTo'](db[_0x16ea('0x13')],{'as':_0x16ea('0x18a'),'foreignKey':_0x16ea('0x113')});db[_0x16ea('0x122')][_0x16ea('0x12c')](db[_0x16ea('0x8c')],{'through':_0x16ea('0x200'),'as':_0x16ea('0x176')});db[_0x16ea('0x122')][_0x16ea('0x12c')](db['Tag'],{'through':'whatsapp_interaction_has_tags','as':'ThroughTags'});db[_0x16ea('0x122')]['belongsToMany'](db[_0x16ea('0x13')],{'as':_0x16ea('0x179'),'through':'user_has_whatsapp_interactions','foreignKey':_0x16ea('0x201')});db[_0x16ea('0x103')][_0x16ea('0x128')](db['User'],{'as':_0x16ea('0x13')});db[_0x16ea('0x103')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'onDelete':_0x16ea('0x112'),'as':_0x16ea('0x165')});db[_0x16ea('0x103')][_0x16ea('0x128')](db[_0x16ea('0x122')],{'onDelete':_0x16ea('0x112'),'as':_0x16ea('0x17a'),'foreignKey':_0x16ea('0x201')});db[_0x16ea('0x103')][_0x16ea('0x128')](db[_0x16ea('0xff')],{'as':_0x16ea('0x175'),'foreignKey':_0x16ea('0x1ff')});db[_0x16ea('0x105')]['belongsTo'](db[_0x16ea('0xff')],{});db[_0x16ea('0x105')][_0x16ea('0x128')](db[_0x16ea('0xf6')],{'as':'List','foreignKey':_0x16ea('0x171')});db[_0x16ea('0x105')][_0x16ea('0x128')](db[_0x16ea('0x71')],{'as':_0x16ea('0x165'),'foreignKey':_0x16ea('0x166')});db[_0x16ea('0x105')][_0x16ea('0x128')](db[_0x16ea('0x122')],{});db[_0x16ea('0x105')]['belongsTo'](db['WhatsappQueue'],{});db[_0x16ea('0x105')][_0x16ea('0x128')](db[_0x16ea('0x103')],{});db[_0x16ea('0x105')]['belongsTo'](db[_0x16ea('0x13')],{});db[_0x16ea('0x107')][_0x16ea('0x128')](db['WhatsappMessage'],{});db['WhatsappTransferReport'][_0x16ea('0x128')](db[_0x16ea('0x122')],{});db[_0x16ea('0x107')][_0x16ea('0x128')](db[_0x16ea('0xff')],{'foreignKey':_0x16ea('0x202'),'as':'FromAccount'});db[_0x16ea('0x107')]['belongsTo'](db[_0x16ea('0xff')],{'foreignKey':_0x16ea('0x203'),'as':'ToAccount'});db['WhatsappTransferReport'][_0x16ea('0x128')](db[_0x16ea('0x108')],{'foreignKey':_0x16ea('0x204'),'as':_0x16ea('0x1ed')});db['WhatsappTransferReport'][_0x16ea('0x128')](db[_0x16ea('0x13')],{'foreignKey':_0x16ea('0x1e9'),'as':_0x16ea('0x1ea')});db[_0x16ea('0x107')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'foreignKey':'ToUserId','as':'ToAgent'});db[_0x16ea('0x108')][_0x16ea('0x12c')](db[_0x16ea('0x13')],{'as':_0x16ea('0x15b'),'through':_0x16ea('0x3a'),'foreignKey':_0x16ea('0x205')});db[_0x16ea('0x108')]['belongsToMany'](db[_0x16ea('0x131')],{'through':_0x16ea('0x1e5'),'as':'Teams'});db[_0x16ea('0x10e')][_0x16ea('0x128')](db[_0x16ea('0x13')],{'as':'user','foreignKey':_0x16ea('0x113'),'onDelete':_0x16ea('0x112'),'hooks':!![]});db[_0x16ea('0x169')][_0x16ea('0x114')](db[_0x16ea('0xc6')],{'as':'Dynamics365Account','onDelete':'restrict'});db[_0x16ea('0x169')][_0x16ea('0x114')](db[_0x16ea('0x3b')],{'as':_0x16ea('0x206'),'onDelete':'restrict'});db[_0x16ea('0x169')]['hasOne'](db[_0x16ea('0x3c')],{'as':'Smtp','onDelete':_0x16ea('0x16b')});module[_0x16ea('0x207')]={'db':db,'dbH':dbH};
\ No newline at end of file
+var _0xd9f8=['ChatInteractionId','chat_interaction_has_tags','team_has_chat_queues','ChatGroupId','CompanyId','Phones','CmContactId','Hoppers','JscriptySessions','Company','cm_contact_has_tags','CmHopperId','Agent','CampaignId','OwnerId','All','Any','AutomationAnyId','Actions','AutomationId','ParentId','Intervals','Extensions','MailApplications','ChatApplications','SmsApplications','DefaultReportId','CustomReportId','Mohs','mail_interaction_has_tags','whatsapp_interaction_has_tags','ContactItemType','ItemType','ItemTypeId','Hopper','TriggerAllId','AnyConditions','AnyCondition','TriggerAnyId','Fields','MetricId','Configurations','AccountId','FieldId','Field','VariableId','SugarcrmAccount','SugarcrmConfiguration','SugarcrmField','SubjectId','Subject','Description','DescriptionId','Subjects','Descriptions','ZendeskField','int_zendesk_configuration_has_tags','FreshdeskAccount','int_freshdesk_configuration_has_tags','Dynamics365Configuration','FreshsalesAccount','ChatQueueReport','FromId','SessionId','ProjectId','team_has_mail_queues','FaxQueues','SmsQueues','OpenchannelQueues','team_has_whatsapp_queues','TeamVoicePrefix','HopperBlacks','TrunkBackup','campaigns_has_cm_lists','campaigns_has_cm_blacklists','FromMailAccountId','FromUserId','FromAgent','ToUserId','ToAgent','ToMailQueueId','ToQueue','ToAccount','FromChatWebsiteId','FromAccount','ToChatQueueId','ToFaxQueueId','FromOpenchannelAccountId','ToOpenchannelQueueId','SmsTransferReport','FromSmsAccountId','Queues','voice_queues_has_cm_lists','userProfileId','Resources','sectionId','WhatsappAccountId','user_has_whatsapp_accounts','WhatsappInteractionId','FromWhatsappAccountId','ToWhatsappAccountId','ToQueueId','WhatsappQueueId','UserSetting','user','exports','../config/environment','sequelize','lodash','jstz','determine','defaultsDeep','motion2','mysql','utf8mb4','utf8','sequelizeHistory','xcall','xC@LL1234','127.0.0.1','name','utf8_general_ci','database','username','password','options','User','import','../api/user/user.model','VoiceChanSpy','../api/voiceChanSpy/voiceChanSpy.model','VoiceContext','../api/voiceContext/voiceContext.model','../api/voiceExtension/voiceExtension.model','VoiceMusicOnHold','../api/voiceMusicOnHold/voiceMusicOnHold.model','VoiceQueue','../api/voiceRecording/voiceRecording.model','ScreenRecording','../api/screenRecording/screenRecording.model','../api/voiceMail/voiceMail.model','../api/voiceMailMessage/voiceMailMessage.model','VoiceCallReport','../api/voiceCallReport/voiceCallReport.model','VoiceDialReport','../api/voiceDialReport/voiceDialReport.model','VoiceAgentReport','../api/voiceAgentReport/voiceAgentReport.model','VoiceQueueReport','../api/voiceQueueReport/voiceQueueReport.model','MemberReport','../api/memberReport/memberReport.model','Trunk','../api/trunk/trunk.model','VoiceTransferReport','../api/voiceTransferReport/voiceTransferReport.model','../api/userVoiceQueueRt/userVoiceQueueRt.model','UserVoiceQueue','UserChatQueue','UserMailQueue','../api/userMailQueue/userMailQueue.model','UserFaxQueue','../api/userFaxQueue/userFaxQueue.model','UserOpenchannelQueue','../api/userOpenchannelQueue/userOpenchannelQueue.model','UserWhatsappQueue','../api/userWhatsappQueue/userWhatsappQueue.model','MailServerIn','../api/mailServerIn/mailServerIn.model','MailServerOut','MailAccount','MailQueue','../api/mailSubstatus/mailSubstatus.model','MailInteraction','../api/mailInteraction/mailInteraction.model','../api/mailMessage/mailMessage.model','MailApplication','../api/mailApplication/mailApplication.model','MailQueueReport','../api/mailQueueReport/mailQueueReport.model','Dashboard','DashboardItem','../api/dashboardItem/dashboardItem.model','FaxAccount','../api/faxAccount/faxAccount.model','FaxApplication','../api/faxApplication/faxApplication.model','FaxInteraction','../api/faxInteraction/faxInteraction.model','FaxMessage','../api/faxMessage/faxMessage.model','FaxQueue','../api/faxQueueReport/faxQueueReport.model','SmsAccount','SmsApplication','../api/smsApplication/smsApplication.model','SmsInteraction','../api/smsInteraction/smsInteraction.model','SmsMessage','../api/smsMessage/smsMessage.model','SmsQueue','../api/smsQueue/smsQueue.model','OpenchannelAccount','OpenchannelApplication','../api/openchannelApplication/openchannelApplication.model','OpenchannelInteraction','../api/openchannelInteraction/openchannelInteraction.model','OpenchannelMessage','../api/openchannelMessage/openchannelMessage.model','OpenchannelQueueReport','ChatApplication','../api/chatApplication/chatApplication.model','../api/chatInteraction/chatInteraction.model','ChatMessage','../api/chatMessage/chatMessage.model','ChatOfflineMessage','../api/chatOfflineMessage/chatOfflineMessage.model','ChatQueue','../api/chatQueue/chatQueue.model','ChatGroup','../api/chatGroup/chatGroup.model','ChatProactiveAction','CmCompany','../api/cmCompany/cmCompany.model','../api/cmContact/cmContact.model','CmHopper','../api/cmHopper/cmHopper.model','CmHopperBlack','../api/cmHopperBlack/cmHopperBlack.model','CmHopperFinal','../api/cmHopperFinal/cmHopperFinal.model','../api/cmHopperHistory/cmHopperHistory.model','ReportAgentPreview','CmCustomField','../api/cmCustomField/cmCustomField.model','Action','Automation','../api/automation/automation.model','CannedAnswer','../api/cannedAnswer/cannedAnswer.model','Disposition','../api/disposition/disposition.model','Condition','../api/condition/condition.model','Interval','Pause','../api/pause/pause.model','Cdr','VoiceQueuesLog','../api/voiceQueuesLog/voiceQueuesLog.model','Schedule','../api/schedule/schedule.model','Tag','../api/tag/tag.model','../api/contactItemType/contactItemType.model','CmContactHasItem','CmHopperAdditionalPhone','../api/cmHopperAdditionalPhone/cmHopperAdditionalPhone.model','Template','../api/template/template.model','Trigger','../api/trigger/trigger.model','Variable','../api/variable/variable.model','../api/integrationReport/integrationReport.model','AnalyticCustomReport','../api/analyticCustomReport/analyticCustomReport.model','AnalyticDefaultReport','AnalyticExtractedReport','../api/analyticExtractedReport/analyticExtractedReport.model','AnalyticMetric','../api/analyticMetric/analyticMetric.model','AnalyticFieldReport','AnalyticTreeReport','../api/analyticTreeReport/analyticTreeReport.model','SalesforceAccount','SalesforceConfiguration','../api/intSalesforceConfiguration/intSalesforceConfiguration.model','SalesforceField','../api/intSalesforceField/intSalesforceField.model','../api/intSugarcrmConfiguration/intSugarcrmConfiguration.model','../api/intSugarcrmField/intSugarcrmField.model','DeskAccount','../api/intDeskAccount/intDeskAccount.model','DeskConfiguration','../api/intDeskConfiguration/intDeskConfiguration.model','DeskField','../api/intDeskField/intDeskField.model','ZohoAccount','../api/intZohoAccount/intZohoAccount.model','ZohoConfiguration','ZohoField','../api/intZohoField/intZohoField.model','ZendeskAccount','ZendeskConfiguration','../api/intZendeskConfiguration/intZendeskConfiguration.model','../api/intZendeskField/intZendeskField.model','../api/intFreshdeskAccount/intFreshdeskAccount.model','FreshdeskConfiguration','../api/intFreshdeskConfiguration/intFreshdeskConfiguration.model','FreshdeskField','VtigerAccount','../api/intVtigerAccount/intVtigerAccount.model','VtigerConfiguration','../api/intVtigerConfiguration/intVtigerConfiguration.model','VtigerField','../api/intVtigerField/intVtigerField.model','ServicenowAccount','ServicenowConfiguration','../api/intServicenowConfiguration/intServicenowConfiguration.model','ServicenowField','Dynamics365Account','../api/intDynamics365Account/intDynamics365Account.model','../api/intDynamics365Configuration/intDynamics365Configuration.model','Dynamics365Field','../api/intDynamics365Field/intDynamics365Field.model','../api/intFreshsalesAccount/intFreshsalesAccount.model','FreshsalesConfiguration','FreshsalesField','Integration','Network','ChatInternalMessage','JscriptyAnswerReport','JscriptyQuestionReport','../api/jscriptyQuestionReport/jscriptyQuestionReport.model','JscriptySessionReport','../api/jscriptySessionReport/jscriptySessionReport.model','SmsQueueReport','../api/smsQueueReport/smsQueueReport.model','SquareReport','SquareDetailsReport','JscriptyProject','../api/jscriptyProject/jscriptyProject.model','Setting','../api/setting/setting.model','SquareOdbc','../api/squareOdbc/squareOdbc.model','SquareProject','../api/squareProject/squareProject.model','SquareRecording','../api/squareRecording/squareRecording.model','SquareMessage','../api/squareMessage/squareMessage.model','Team','License','../api/license/license.model','Campaign','../api/campaign/campaign.model','Migration','../api/migration/migration.model','../api/attachment/attachment.model','Plugin','MailTransferReport','../api/mailTransferReport/mailTransferReport.model','ChatTransferReport','FaxTransferReport','OpenchannelTransferReport','../api/openchannelTransferReport/openchannelTransferReport.model','../api/smsTransferReport/smsTransferReport.model','CmList','../api/cmList/cmList.model','VoicePrefix','../api/userProfile/userProfile.model','UserProfileSection','../api/userProfileSection/userProfileSection.model','UserProfileResource','../api/userProfileResource/userProfileResource.model','UserNotification','../api/userNotification/userNotification.model','WhatsappAccount','WhatsappApplication','../api/whatsappApplication/whatsappApplication.model','WhatsappInteraction','WhatsappMessage','../api/whatsappMessage/whatsappMessage.model','WhatsappQueueReport','../api/whatsappQueueReport/whatsappQueueReport.model','WhatsappTransferReport','../api/whatsappTransferReport/whatsappTransferReport.model','../api/whatsappQueue/whatsappQueue.model','CloudProvider','../api/cloudProvider/cloudProvider.model','TeamVoiceQueue','../api/teamVoiceQueue/teamVoiceQueue.model','../api/teamVoicePrefix/teamVoicePrefix.model','../api/userVoicePrefix/userVoicePrefix.model','../api/user-setting/user-setting.model','../api/mailInteractionHasTag/mailInteractionHasTag.model','VoiceMail','cascade','UserId','userSetting','VoiceRecording','Recordings','hasMany','UserVoiceQueueRt','HopperFinals','CmHopperHistory','HopperHistory','OpenchannelInteractions','ChatInteraction','ChatInteractions','SmsInteractions','MailInteractions','WhatsappInteractions','SET\x20NULL','UserProfile','belongsToMany','Groups','chat_group_has_users','CmContact','Contacts','cm_user_has_contacts','cm_user_has_lists','user_has_teams','user_has_chat_interactions','FaxInteractions','user_has_sms_interactions','user_has_whatsapp_interactions','VoicePrefixes','UserVoicePrefix','MailQueues','ChatQueues','UserSmsQueue','OpenchannelQueue','WhatsappQueue','WhatsappQueues','ChatWebsites','user_has_chat_websites','FaxAccounts','user_has_fax_accounts','MailAccounts','user_has_mail_accounts','OpenchannelAccounts','SmsAccounts','user_has_sms_accounts','WhatsappAccounts','VoiceExtension','SpiedAgents','ChanSpyId','Applications','Sound','Sounds','moh_has_sounds','Members','VoiceQueueId','HopperHistories','TrunkId','belongsTo','IntervalId','mandatoryDispositionPause','mandatoryDispositionPauseId','Agents','Teams','BlackLists','voice_queues_has_cm_blacklists','VoiceMailMessage','Messages','mailboxuser','mailbox','QueueCalls','uniqueid','AgentReports','Contact','ContactId','CloudProviderId','MailAccountId','restrict','hasOne','Smtp','Answers','MailMessage','List','ListId','TemplateId','MailInteractionId','Account','Owner','Tags','ThroughTags','Users','Attachment','Attachments','Interaction','ChatWebsite','ChatWebsiteId','ChatOfflineMessageId','TagId','Items','FaxAccountId','Interactions','Exntensions','fax_interaction_has_tags','user_has_fax_interactions','FaxInteractionId','AttachmentId','team_has_fax_queues','FaxQueueReport','Dispositions','SmsAccountId','SmsInteractionId','sms_interaction_has_tags','SmsQueueId','team_has_sms_queues','OpenchannelAccountId','user_has_openchannel_accounts','OpenchannelQueueId','OpenchannelInteractionId','openchannel_interaction_has_tags','user_has_openchannel_interactions','team_has_openchannel_queues','ProactiveActions','Queue','ChatQueueId','Website'];(function(_0x10f757,_0x4fca4d){var _0x1f91a7=function(_0x588518){while(--_0x588518){_0x10f757['push'](_0x10f757['shift']());}};_0x1f91a7(++_0x4fca4d);}(_0xd9f8,0x6a));var _0x8d9f=function(_0x274c5a,_0x3d2582){_0x274c5a=_0x274c5a-0x0;var _0x249044=_0xd9f8[_0x274c5a];return _0x249044;};'use strict';var config=require(_0x8d9f('0x0'));var Sequelize=require(_0x8d9f('0x1'));var _=require(_0x8d9f('0x2'));var jstz=require(_0x8d9f('0x3'));var timezone=jstz[_0x8d9f('0x4')]();config[_0x8d9f('0x1')]=_[_0x8d9f('0x5')](config['sequelize'],{'database':_0x8d9f('0x6'),'username':'xcall','password':'xC@LL1234','options':{'host':'127.0.0.1','port':0xcea,'dialect':_0x8d9f('0x7'),'dialectOptions':{'charset':_0x8d9f('0x8')},'logging':![],'timezone':timezone['name'](),'define':{'charset':_0x8d9f('0x9'),'collate':'utf8_general_ci'}}});config[_0x8d9f('0xa')]=_[_0x8d9f('0x5')](config['sequelizeHistory'],{'database':_0x8d9f('0x6'),'username':_0x8d9f('0xb'),'password':_0x8d9f('0xc'),'options':{'host':_0x8d9f('0xd'),'port':0xcea,'dialect':_0x8d9f('0x7'),'dialectOptions':{'charset':'utf8mb4'},'logging':![],'timezone':timezone[_0x8d9f('0xe')](),'define':{'charset':_0x8d9f('0x9'),'collate':_0x8d9f('0xf')}}});var db={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0x8d9f('0x1')][_0x8d9f('0x10')],config[_0x8d9f('0x1')][_0x8d9f('0x11')],config['sequelize'][_0x8d9f('0x12')],config[_0x8d9f('0x1')][_0x8d9f('0x13')])};var dbH={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0x8d9f('0xa')]['database'],config[_0x8d9f('0xa')][_0x8d9f('0x11')],config[_0x8d9f('0xa')][_0x8d9f('0x12')],config['sequelizeHistory'][_0x8d9f('0x13')])};db[_0x8d9f('0x14')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x16'));db[_0x8d9f('0x17')]=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0x18'));db[_0x8d9f('0x19')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0x1a'));db['VoiceExtension']=db[_0x8d9f('0x1')]['import'](_0x8d9f('0x1b'));db[_0x8d9f('0x1c')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x1d'));db[_0x8d9f('0x1e')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/voiceQueue/voiceQueue.model');db['VoiceRecording']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x1f'));db[_0x8d9f('0x20')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x21'));db['VoiceMail']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x22'));db['VoiceMailMessage']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x23'));db[_0x8d9f('0x24')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x25'));db[_0x8d9f('0x26')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x27'));db[_0x8d9f('0x28')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x29'));db[_0x8d9f('0x2a')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x2b'));db[_0x8d9f('0x2c')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x2d'));db[_0x8d9f('0x2e')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x2f'));db[_0x8d9f('0x30')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x31'));db['UserVoiceQueueRt']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x32'));db[_0x8d9f('0x33')]=db[_0x8d9f('0x1')]['import']('../api/userVoiceQueue/userVoiceQueue.model');db[_0x8d9f('0x34')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/userChatQueue/userChatQueue.model');db[_0x8d9f('0x35')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x36'));db[_0x8d9f('0x37')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0x38'));db['UserSmsQueue']=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/userSmsQueue/userSmsQueue.model');db[_0x8d9f('0x39')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x3a'));db[_0x8d9f('0x3b')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x3c'));db[_0x8d9f('0x3d')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x3e'));db[_0x8d9f('0x3f')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/mailServerOut/mailServerOut.model');db[_0x8d9f('0x40')]=db[_0x8d9f('0x1')]['import']('../api/mailAccount/mailAccount.model');db[_0x8d9f('0x41')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/mailQueue/mailQueue.model');db['MailSubstatus']=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0x42'));db[_0x8d9f('0x43')]=db['sequelize']['import'](_0x8d9f('0x44'));db['MailMessage']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x45'));db[_0x8d9f('0x46')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x47'));db[_0x8d9f('0x48')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x49'));db[_0x8d9f('0x4a')]=db[_0x8d9f('0x1')]['import']('../api/dashboard/dashboard.model');db[_0x8d9f('0x4b')]=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0x4c'));db[_0x8d9f('0x4d')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x4e'));db[_0x8d9f('0x4f')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x50'));db[_0x8d9f('0x51')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x52'));db[_0x8d9f('0x53')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x54'));db[_0x8d9f('0x55')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/faxQueue/faxQueue.model');db['FaxQueueReport']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x56'));db[_0x8d9f('0x57')]=db['sequelize'][_0x8d9f('0x15')]('../api/smsAccount/smsAccount.model');db[_0x8d9f('0x58')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x59'));db[_0x8d9f('0x5a')]=db['sequelize']['import'](_0x8d9f('0x5b'));db[_0x8d9f('0x5c')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0x5d'));db[_0x8d9f('0x5e')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x5f'));db[_0x8d9f('0x60')]=db['sequelize']['import']('../api/openchannelAccount/openchannelAccount.model');db[_0x8d9f('0x61')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x62'));db[_0x8d9f('0x63')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0x64'));db[_0x8d9f('0x65')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x66'));db['OpenchannelQueue']=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/openchannelQueue/openchannelQueue.model');db['ChatWebsite']=db['sequelize']['import']('../api/chatWebsite/chatWebsite.model');db[_0x8d9f('0x67')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/openchannelQueueReport/openchannelQueueReport.model');db[_0x8d9f('0x68')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x69'));db['ChatInteraction']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x6a'));db[_0x8d9f('0x6b')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x6c'));db[_0x8d9f('0x6d')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x6e'));db[_0x8d9f('0x6f')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x70'));db[_0x8d9f('0x71')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x72'));db[_0x8d9f('0x73')]=db[_0x8d9f('0x1')]['import']('../api/chatProactiveAction/chatProactiveAction.model');db[_0x8d9f('0x74')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x75'));db['CmContact']=db[_0x8d9f('0x1')]['import'](_0x8d9f('0x76'));db[_0x8d9f('0x77')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x78'));db[_0x8d9f('0x79')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x7a'));db[_0x8d9f('0x7b')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x7c'));db['CmHopperHistory']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x7d'));db[_0x8d9f('0x7e')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/reportAgentPreview/reportAgentPreview.model');db[_0x8d9f('0x7f')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x80'));db[_0x8d9f('0x81')]=db[_0x8d9f('0x1')]['import']('../api/action/action.model');db[_0x8d9f('0x82')]=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0x83'));db[_0x8d9f('0x84')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0x85'));db[_0x8d9f('0x86')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x87'));db[_0x8d9f('0x88')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0x89'));db[_0x8d9f('0x8a')]=db['sequelize']['import']('../api/interval/interval.model');db[_0x8d9f('0x8b')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x8c'));db[_0x8d9f('0x8d')]=db['sequelize'][_0x8d9f('0x15')]('../api/cdr/cdr.model');db[_0x8d9f('0x8e')]=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0x8f'));db[_0x8d9f('0x90')]=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0x91'));db['Sound']=db['sequelize'][_0x8d9f('0x15')]('../api/sound/sound.model');db[_0x8d9f('0x92')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x93'));db['ContactItemType']=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0x94'));db[_0x8d9f('0x95')]=db['sequelize']['import']('../api/cmContactHasItem/cmContactHasItem.model');db[_0x8d9f('0x96')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x97'));db[_0x8d9f('0x98')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x99'));db[_0x8d9f('0x9a')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0x9b'));db[_0x8d9f('0x9c')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x9d'));db['Integration']=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/integration/integration.model');db['IntegrationReport']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x9e'));db[_0x8d9f('0x9f')]=db['sequelize']['import'](_0x8d9f('0xa0'));db[_0x8d9f('0xa1')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/analyticDefaultReport/analyticDefaultReport.model');db[_0x8d9f('0xa2')]=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0xa3'));db[_0x8d9f('0xa4')]=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0xa5'));db[_0x8d9f('0xa6')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/analyticFieldReport/analyticFieldReport.model');db[_0x8d9f('0xa7')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0xa8'));db[_0x8d9f('0xa9')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/intSalesforceAccount/intSalesforceAccount.model');db[_0x8d9f('0xaa')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xab'));db[_0x8d9f('0xac')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xad'));db['SugarcrmAccount']=db[_0x8d9f('0x1')]['import']('../api/intSugarcrmAccount/intSugarcrmAccount.model');db['SugarcrmConfiguration']=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0xae'));db['SugarcrmField']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xaf'));db[_0x8d9f('0xb0')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xb1'));db[_0x8d9f('0xb2')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xb3'));db[_0x8d9f('0xb4')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xb5'));db[_0x8d9f('0xb6')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xb7'));db[_0x8d9f('0xb8')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/intZohoConfiguration/intZohoConfiguration.model');db[_0x8d9f('0xb9')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xba'));db[_0x8d9f('0xbb')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/intZendeskAccount/intZendeskAccount.model');db[_0x8d9f('0xbc')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xbd'));db['ZendeskField']=db[_0x8d9f('0x1')]['import'](_0x8d9f('0xbe'));db['FreshdeskAccount']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xbf'));db[_0x8d9f('0xc0')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xc1'));db[_0x8d9f('0xc2')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/intFreshdeskField/intFreshdeskField.model');db[_0x8d9f('0xc3')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xc4'));db[_0x8d9f('0xc5')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0xc6'));db[_0x8d9f('0xc7')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0xc8'));db[_0x8d9f('0xc9')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/intServicenowAccount/intServicenowAccount.model');db[_0x8d9f('0xca')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xcb'));db[_0x8d9f('0xcc')]=db[_0x8d9f('0x1')]['import']('../api/intServicenowField/intServicenowField.model');db[_0x8d9f('0xcd')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xce'));db['Dynamics365Configuration']=db[_0x8d9f('0x1')]['import'](_0x8d9f('0xcf'));db[_0x8d9f('0xd0')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0xd1'));db['FreshsalesAccount']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xd2'));db[_0x8d9f('0xd3')]=db['sequelize'][_0x8d9f('0x15')]('../api/intFreshsalesConfiguration/intFreshsalesConfiguration.model');db[_0x8d9f('0xd4')]=db['sequelize'][_0x8d9f('0x15')]('../api/intFreshsalesField/intFreshsalesField.model');db[_0x8d9f('0xd5')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/integration/integration.model');db[_0x8d9f('0xd6')]=db[_0x8d9f('0x1')]['import']('../api/network/network.model');db['ChatQueueReport']=db['sequelize'][_0x8d9f('0x15')]('../api/chatQueueReport/chatQueueReport.model');db[_0x8d9f('0xd7')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/chatInternalMessage/chatInternalMessage.model');db[_0x8d9f('0xd8')]=db[_0x8d9f('0x1')]['import']('../api/jscriptyAnswerReport/jscriptyAnswerReport.model');db[_0x8d9f('0xd9')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xda'));db[_0x8d9f('0xdb')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0xdc'));db[_0x8d9f('0xdd')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0xde'));db[_0x8d9f('0xdf')]=db['sequelize'][_0x8d9f('0x15')]('../api/squareReport/squareReport.model');db[_0x8d9f('0xe0')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/squareReportDetail/squareReportDetail.model');db[_0x8d9f('0xe1')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xe2'));db[_0x8d9f('0xe3')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xe4'));db[_0x8d9f('0xe5')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xe6'));db[_0x8d9f('0xe7')]=db[_0x8d9f('0x1')]['import'](_0x8d9f('0xe8'));db[_0x8d9f('0xe9')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xea'));db[_0x8d9f('0xeb')]=db['sequelize']['import'](_0x8d9f('0xec'));db[_0x8d9f('0xed')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/team/team.model');db[_0x8d9f('0xee')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xef'));db[_0x8d9f('0xf0')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xf1'));db[_0x8d9f('0xf2')]=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0xf3'));db['Attachment']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xf4'));db[_0x8d9f('0xf5')]=db['sequelize']['import']('../api/plugin/plugin.model');db[_0x8d9f('0xf6')]=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0xf7'));db[_0x8d9f('0xf8')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/chatTransferReport/chatTransferReport.model');db[_0x8d9f('0xf9')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/faxTransferReport/faxTransferReport.model');db[_0x8d9f('0xfa')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xfb'));db['SmsTransferReport']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xfc'));db[_0x8d9f('0xfd')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0xfe'));db[_0x8d9f('0xff')]=db[_0x8d9f('0x1')]['import']('../api/voicePrefix/voicePrefix.model');db['UserProfile']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x100'));db[_0x8d9f('0x101')]=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0x102'));db[_0x8d9f('0x103')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x104'));db[_0x8d9f('0x105')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x106'));db[_0x8d9f('0x107')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/whatsappAccount/whatsappAccount.model');db[_0x8d9f('0x108')]=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0x109'));db[_0x8d9f('0x10a')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')]('../api/whatsappInteraction/whatsappInteraction.model');db[_0x8d9f('0x10b')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x10c'));db[_0x8d9f('0x10d')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x10e'));db[_0x8d9f('0x10f')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x110'));db['WhatsappQueue']=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0x111'));db[_0x8d9f('0x112')]=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0x113'));db[_0x8d9f('0x114')]=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x115'));db['TeamVoicePrefix']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x116'));db['UserVoicePrefix']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x117'));db['UserSetting']=db['sequelize'][_0x8d9f('0x15')](_0x8d9f('0x118'));db['MailInteractionHasTag']=db[_0x8d9f('0x1')][_0x8d9f('0x15')](_0x8d9f('0x119'));db[_0x8d9f('0x14')]['hasOne'](db[_0x8d9f('0x11a')],{'as':'VoiceMail','onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x11c')});db[_0x8d9f('0x14')]['hasOne'](db['UserSetting'],{'as':_0x8d9f('0x11d'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x11c')});db[_0x8d9f('0x14')]['hasMany'](db[_0x8d9f('0x11e')],{'as':_0x8d9f('0x11f'),'foreignKey':_0x8d9f('0x11c')});db[_0x8d9f('0x14')][_0x8d9f('0x120')](db[_0x8d9f('0x121')],{'as':'VoiceQueuesRt','foreignKey':'UserId'});db['User'][_0x8d9f('0x120')](db['VoiceExtension'],{'as':'Extensions','onDelete':_0x8d9f('0x11b'),'hooks':!![]});db[_0x8d9f('0x14')]['hasMany'](db[_0x8d9f('0x7b')],{'as':_0x8d9f('0x122'),'foreignKey':_0x8d9f('0x11c')});db[_0x8d9f('0x14')][_0x8d9f('0x120')](db[_0x8d9f('0x123')],{'as':_0x8d9f('0x124'),'foreignKey':_0x8d9f('0x11c')});db[_0x8d9f('0x14')][_0x8d9f('0x120')](db[_0x8d9f('0x7e')],{'as':_0x8d9f('0x7e'),'foreignKey':_0x8d9f('0x11c')});db['User'][_0x8d9f('0x120')](db[_0x8d9f('0x63')],{'as':_0x8d9f('0x125'),'foreignKey':_0x8d9f('0x11c')});db[_0x8d9f('0x14')][_0x8d9f('0x120')](db[_0x8d9f('0x126')],{'as':_0x8d9f('0x127'),'foreignKey':_0x8d9f('0x11c')});db[_0x8d9f('0x14')][_0x8d9f('0x120')](db[_0x8d9f('0x5a')],{'as':_0x8d9f('0x128'),'foreignKey':_0x8d9f('0x11c')});db['User'][_0x8d9f('0x120')](db[_0x8d9f('0x51')],{'as':'FaxInteractions','foreignKey':_0x8d9f('0x11c')});db[_0x8d9f('0x14')]['hasMany'](db[_0x8d9f('0x43')],{'as':_0x8d9f('0x129'),'foreignKey':_0x8d9f('0x11c')});db['User'][_0x8d9f('0x120')](db[_0x8d9f('0x10a')],{'as':_0x8d9f('0x12a'),'foreignKey':_0x8d9f('0x11c')});db[_0x8d9f('0x14')]['hasMany'](db[_0x8d9f('0x105')],{'as':'UserNotifications','foreignKey':'SenderId'});db[_0x8d9f('0x14')][_0x8d9f('0x120')](db[_0x8d9f('0x77')],{'as':'Hoppers','foreignKey':_0x8d9f('0x11c'),'onDelete':_0x8d9f('0x12b')});db[_0x8d9f('0x14')]['belongsTo'](db[_0x8d9f('0x12c')],{'as':_0x8d9f('0x12c'),'foreignKey':'userProfileId'});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db['ChatGroup'],{'as':_0x8d9f('0x12e'),'through':_0x8d9f('0x12f')});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db[_0x8d9f('0x130')],{'as':_0x8d9f('0x131'),'through':_0x8d9f('0x132')});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db[_0x8d9f('0xfd')],{'as':'Lists','through':_0x8d9f('0x133')});db[_0x8d9f('0x14')]['belongsToMany'](db[_0x8d9f('0xed')],{'through':_0x8d9f('0x134')});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db['MailInteraction'],{'as':'MailInteractions','through':'user_has_mail_interactions'});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db[_0x8d9f('0x126')],{'as':'ChatInteractions','through':_0x8d9f('0x135')});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db[_0x8d9f('0x51')],{'as':_0x8d9f('0x136'),'through':'user_has_fax_interactions'});db[_0x8d9f('0x14')]['belongsToMany'](db['SmsInteraction'],{'as':_0x8d9f('0x128'),'through':_0x8d9f('0x137')});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db[_0x8d9f('0x63')],{'as':'OpenchannelInteractions','through':'user_has_openchannel_interactions'});db['User'][_0x8d9f('0x12d')](db['WhatsappInteraction'],{'as':_0x8d9f('0x12a'),'through':_0x8d9f('0x138')});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db[_0x8d9f('0x1e')],{'as':'VoiceQueues','through':'UserVoiceQueue','required':![]});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db[_0x8d9f('0xff')],{'as':_0x8d9f('0x139'),'through':_0x8d9f('0x13a'),'required':![]});db['User'][_0x8d9f('0x12d')](db['MailQueue'],{'as':_0x8d9f('0x13b'),'through':_0x8d9f('0x35'),'required':![]});db[_0x8d9f('0x14')]['belongsToMany'](db['ChatQueue'],{'as':_0x8d9f('0x13c'),'through':_0x8d9f('0x34'),'required':![],'hooks':!![]});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db[_0x8d9f('0x55')],{'as':'FaxQueues','through':_0x8d9f('0x37'),'required':![]});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db[_0x8d9f('0x5e')],{'as':'SmsQueues','through':_0x8d9f('0x13d'),'required':![]});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db[_0x8d9f('0x13e')],{'as':'OpenchannelQueues','through':_0x8d9f('0x39'),'required':![]});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db[_0x8d9f('0x13f')],{'as':_0x8d9f('0x140'),'through':_0x8d9f('0x3b'),'required':![]});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db['CmList'],{'through':_0x8d9f('0x133')});db['User'][_0x8d9f('0x12d')](db['ChatWebsite'],{'as':_0x8d9f('0x141'),'through':_0x8d9f('0x142')});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db[_0x8d9f('0x4d')],{'as':_0x8d9f('0x143'),'through':_0x8d9f('0x144')});db['User'][_0x8d9f('0x12d')](db[_0x8d9f('0x40')],{'as':_0x8d9f('0x145'),'through':_0x8d9f('0x146')});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db[_0x8d9f('0x60')],{'as':_0x8d9f('0x147'),'through':'user_has_openchannel_accounts'});db[_0x8d9f('0x14')][_0x8d9f('0x12d')](db['SmsAccount'],{'as':_0x8d9f('0x148'),'through':_0x8d9f('0x149')});db[_0x8d9f('0x14')]['belongsToMany'](db['WhatsappAccount'],{'as':_0x8d9f('0x14a'),'through':'user_has_whatsapp_accounts'});db[_0x8d9f('0x17')][_0x8d9f('0x120')](db[_0x8d9f('0x14b')],{'as':_0x8d9f('0x14c'),'onDelete':'cascade','foreignKey':_0x8d9f('0x14d')});db[_0x8d9f('0x19')]['hasMany'](db[_0x8d9f('0x14b')],{'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x14b')][_0x8d9f('0x120')](db[_0x8d9f('0x14b')],{'as':_0x8d9f('0x14e'),'onDelete':_0x8d9f('0x11b')});db['VoiceMusicOnHold']['belongsToMany'](db[_0x8d9f('0x14f')],{'as':_0x8d9f('0x150'),'through':_0x8d9f('0x151')});db[_0x8d9f('0x1e')][_0x8d9f('0x120')](db[_0x8d9f('0x121')],{'as':_0x8d9f('0x152'),'foreignKey':_0x8d9f('0x153')});db['VoiceQueue']['hasMany'](db[_0x8d9f('0x77')],{'as':'Hoppers','foreignKey':_0x8d9f('0x153')});db[_0x8d9f('0x1e')][_0x8d9f('0x120')](db[_0x8d9f('0x7b')],{'as':_0x8d9f('0x122'),'foreignKey':_0x8d9f('0x153')});db[_0x8d9f('0x1e')]['hasMany'](db[_0x8d9f('0x123')],{'as':_0x8d9f('0x154'),'foreignKey':_0x8d9f('0x153')});db[_0x8d9f('0x1e')]['hasMany'](db[_0x8d9f('0x7e')],{'as':_0x8d9f('0x7e'),'foreignKey':'VoiceQueueId'});db[_0x8d9f('0x1e')][_0x8d9f('0x120')](db[_0x8d9f('0x79')],{'as':'HopperBlacks','foreignKey':_0x8d9f('0x153')});db[_0x8d9f('0x1e')][_0x8d9f('0x120')](db[_0x8d9f('0xdb')],{'as':'JscriptySessions','foreignKey':_0x8d9f('0x153')});db['VoiceQueue']['belongsTo'](db['Trunk'],{'as':_0x8d9f('0x2e'),'foreignKey':_0x8d9f('0x155')});db[_0x8d9f('0x1e')][_0x8d9f('0x156')](db[_0x8d9f('0x2e')],{'as':'TrunkBackup','foreignKey':'TrunkBackupId'});db[_0x8d9f('0x1e')][_0x8d9f('0x156')](db[_0x8d9f('0x8a')],{'as':_0x8d9f('0x8a'),'foreignKey':_0x8d9f('0x157')});db['VoiceQueue'][_0x8d9f('0x156')](db[_0x8d9f('0x8b')],{'as':_0x8d9f('0x158'),'foreignKey':_0x8d9f('0x159')});db[_0x8d9f('0x1e')][_0x8d9f('0x12d')](db[_0x8d9f('0xfd')],{'as':'Lists','through':'voice_queues_has_cm_lists'});db[_0x8d9f('0x1e')]['belongsToMany'](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x15a'),'through':_0x8d9f('0x33')});db['VoiceQueue']['belongsToMany'](db[_0x8d9f('0xed')],{'as':_0x8d9f('0x15b'),'through':_0x8d9f('0x114')});db[_0x8d9f('0x1e')][_0x8d9f('0x12d')](db[_0x8d9f('0xfd')],{'as':_0x8d9f('0x15c'),'through':_0x8d9f('0x15d')});db['VoiceRecording'][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x14'),'foreignKey':_0x8d9f('0x11c')});db[_0x8d9f('0x20')][_0x8d9f('0x156')](db['User'],{'as':_0x8d9f('0x14'),'foreignKey':'UserId'});db[_0x8d9f('0x11a')]['hasMany'](db[_0x8d9f('0x15e')],{'as':_0x8d9f('0x15f'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x160'),'sourceKey':_0x8d9f('0x161')});db[_0x8d9f('0x15e')][_0x8d9f('0x156')](db[_0x8d9f('0x11a')],{'foreignKey':_0x8d9f('0x160'),'targetKey':_0x8d9f('0x161')});db['VoiceCallReport']['hasMany'](db[_0x8d9f('0x2a')],{'as':_0x8d9f('0x162'),'foreignKey':_0x8d9f('0x163'),'constraints':![]});db[_0x8d9f('0x24')]['hasMany'](db[_0x8d9f('0x28')],{'as':_0x8d9f('0x164'),'foreignKey':_0x8d9f('0x163'),'constraints':![]});db[_0x8d9f('0x24')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x14'),'foreignKey':_0x8d9f('0x11c')});db['VoiceCallReport'][_0x8d9f('0x156')](db[_0x8d9f('0x130')],{'as':_0x8d9f('0x165'),'foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x3d')][_0x8d9f('0x156')](db[_0x8d9f('0x40')],{'as':'MailAccount','foreignKey':'MailAccountId'});db[_0x8d9f('0x3d')][_0x8d9f('0x156')](db['CloudProvider'],{'as':_0x8d9f('0x112'),'foreignKey':_0x8d9f('0x167'),'onDelete':'restrict'});db['MailServerOut'][_0x8d9f('0x156')](db[_0x8d9f('0x40')],{'as':_0x8d9f('0x40'),'foreignKey':_0x8d9f('0x168')});db[_0x8d9f('0x3f')][_0x8d9f('0x156')](db[_0x8d9f('0x112')],{'as':_0x8d9f('0x112'),'foreignKey':_0x8d9f('0x167'),'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x40')]['hasOne'](db[_0x8d9f('0x3d')],{'as':'Imap','onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x40')][_0x8d9f('0x16a')](db[_0x8d9f('0x3f')],{'as':_0x8d9f('0x16b'),'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x40')]['hasMany'](db['Disposition'],{'as':'Dispositions','foreignKey':_0x8d9f('0x168'),'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x40')]['hasMany'](db['CannedAnswer'],{'as':_0x8d9f('0x16c'),'foreignKey':'MailAccountId'});db[_0x8d9f('0x40')][_0x8d9f('0x120')](db[_0x8d9f('0x16d')],{'as':_0x8d9f('0x15f'),'foreignKey':'MailAccountId'});db[_0x8d9f('0x40')][_0x8d9f('0x120')](db['MailInteraction'],{'as':'Interactions'});db['MailAccount']['hasMany'](db['MailApplication'],{'as':_0x8d9f('0x14e'),'foreignKey':_0x8d9f('0x168'),'onDelete':'cascade'});db['MailAccount'][_0x8d9f('0x156')](db[_0x8d9f('0xfd')],{'as':_0x8d9f('0x16e'),'foreignKey':_0x8d9f('0x16f')});db[_0x8d9f('0x40')]['belongsTo'](db[_0x8d9f('0x98')],{'as':_0x8d9f('0x98'),'foreignKey':_0x8d9f('0x170')});db[_0x8d9f('0x40')][_0x8d9f('0x156')](db[_0x8d9f('0x8b')],{'as':_0x8d9f('0x158'),'foreignKey':_0x8d9f('0x159')});db['MailAccount'][_0x8d9f('0x12d')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x15a'),'through':_0x8d9f('0x146')});db[_0x8d9f('0x41')][_0x8d9f('0x12d')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x15a'),'through':'UserMailQueue'});db['MailQueue'][_0x8d9f('0x12d')](db[_0x8d9f('0xed')],{'through':'team_has_mail_queues','as':'Teams'});db[_0x8d9f('0x43')][_0x8d9f('0x120')](db['MailMessage'],{'as':_0x8d9f('0x15f'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x171')});db[_0x8d9f('0x43')][_0x8d9f('0x156')](db['MailAccount'],{'as':_0x8d9f('0x172'),'foreignKey':'MailAccountId'});db[_0x8d9f('0x43')][_0x8d9f('0x156')](db[_0x8d9f('0x130')],{'as':_0x8d9f('0x165'),'foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x43')]['belongsTo'](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x173'),'foreignKey':'UserId'});db[_0x8d9f('0x43')][_0x8d9f('0x12d')](db[_0x8d9f('0x92')],{'through':'mail_interaction_has_tags','as':_0x8d9f('0x174')});db[_0x8d9f('0x43')][_0x8d9f('0x12d')](db[_0x8d9f('0x92')],{'through':'mail_interaction_has_tags','as':_0x8d9f('0x175')});db['MailInteraction'][_0x8d9f('0x12d')](db['User'],{'as':_0x8d9f('0x176'),'through':'user_has_mail_interactions','foreignKey':_0x8d9f('0x171')});db['MailMessage'][_0x8d9f('0x120')](db[_0x8d9f('0x177')],{'as':_0x8d9f('0x178'),'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x16d')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x14')});db[_0x8d9f('0x16d')]['belongsTo'](db['CmContact'],{'onDelete':_0x8d9f('0x11b'),'as':_0x8d9f('0x165')});db[_0x8d9f('0x16d')][_0x8d9f('0x156')](db[_0x8d9f('0x43')],{'as':_0x8d9f('0x179'),'foreignKey':_0x8d9f('0x171')});db[_0x8d9f('0x16d')][_0x8d9f('0x156')](db[_0x8d9f('0x40')],{'as':_0x8d9f('0x172'),'foreignKey':'MailAccountId'});db[_0x8d9f('0x16d')]['belongsTo'](db[_0x8d9f('0x17a')],{'as':_0x8d9f('0x17a'),'foreignKey':_0x8d9f('0x17b')});db[_0x8d9f('0x16d')]['belongsTo'](db[_0x8d9f('0x6d')],{'as':_0x8d9f('0x6d'),'foreignKey':_0x8d9f('0x17c')});db[_0x8d9f('0x46')]['belongsTo'](db[_0x8d9f('0x14')],{'onDelete':'restrict'});db[_0x8d9f('0x46')]['belongsTo'](db[_0x8d9f('0x41')],{'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x46')][_0x8d9f('0x156')](db[_0x8d9f('0x40')],{'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x46')][_0x8d9f('0x156')](db[_0x8d9f('0x8a')],{'onDelete':_0x8d9f('0x169'),'foreignKey':_0x8d9f('0x157')});db[_0x8d9f('0x46')][_0x8d9f('0x156')](db[_0x8d9f('0x92')],{'onDelete':_0x8d9f('0x169'),'foreignKey':_0x8d9f('0x17d')});db[_0x8d9f('0x48')][_0x8d9f('0x156')](db[_0x8d9f('0x40')],{});db[_0x8d9f('0x48')]['belongsTo'](db[_0x8d9f('0xfd')],{'as':_0x8d9f('0x16e'),'foreignKey':_0x8d9f('0x16f')});db[_0x8d9f('0x48')][_0x8d9f('0x156')](db[_0x8d9f('0x130')],{'as':_0x8d9f('0x165'),'foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x48')][_0x8d9f('0x156')](db[_0x8d9f('0x43')],{});db['MailQueueReport'][_0x8d9f('0x156')](db[_0x8d9f('0x16d')],{});db[_0x8d9f('0x48')][_0x8d9f('0x156')](db['User'],{});db['MailQueueReport'][_0x8d9f('0x156')](db[_0x8d9f('0x41')],{});db[_0x8d9f('0x4a')][_0x8d9f('0x120')](db[_0x8d9f('0x4b')],{'as':_0x8d9f('0x17e'),'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x4d')][_0x8d9f('0x120')](db[_0x8d9f('0x86')],{'as':'Dispositions','foreignKey':_0x8d9f('0x17f'),'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x4d')]['hasMany'](db[_0x8d9f('0x84')],{'as':_0x8d9f('0x16c'),'foreignKey':_0x8d9f('0x17f')});db['FaxAccount'][_0x8d9f('0x120')](db['FaxInteraction'],{'as':_0x8d9f('0x180')});db[_0x8d9f('0x4d')][_0x8d9f('0x120')](db[_0x8d9f('0x4f')],{'as':_0x8d9f('0x14e'),'foreignKey':_0x8d9f('0x17f'),'onDelete':'cascade'});db[_0x8d9f('0x4d')]['hasMany'](db['VoiceExtension'],{'as':_0x8d9f('0x181'),'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x4d')][_0x8d9f('0x120')](db[_0x8d9f('0x53')],{'as':_0x8d9f('0x15f')});db[_0x8d9f('0x4d')][_0x8d9f('0x156')](db['Trunk'],{'as':_0x8d9f('0x2e')});db['FaxAccount'][_0x8d9f('0x156')](db[_0x8d9f('0xfd')],{'as':_0x8d9f('0x16e'),'foreignKey':_0x8d9f('0x16f')});db[_0x8d9f('0x4d')][_0x8d9f('0x156')](db['Pause'],{'as':_0x8d9f('0x158'),'foreignKey':_0x8d9f('0x159')});db['FaxAccount']['belongsToMany'](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x15a'),'through':'user_has_fax_accounts'});db[_0x8d9f('0x4f')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x4f')][_0x8d9f('0x156')](db[_0x8d9f('0x55')],{'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x4f')][_0x8d9f('0x156')](db[_0x8d9f('0x4d')],{'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x4f')][_0x8d9f('0x156')](db[_0x8d9f('0x92')],{'onDelete':'restrict','foreignKey':_0x8d9f('0x17d')});db[_0x8d9f('0x51')][_0x8d9f('0x120')](db['FaxMessage'],{'as':_0x8d9f('0x15f'),'onDelete':_0x8d9f('0x11b'),'foreignKey':'FaxInteractionId'});db['FaxInteraction'][_0x8d9f('0x156')](db[_0x8d9f('0x4d')],{'as':'Account','foreignKey':'FaxAccountId'});db[_0x8d9f('0x51')][_0x8d9f('0x156')](db[_0x8d9f('0x130')],{'as':_0x8d9f('0x165'),'foreignKey':_0x8d9f('0x166')});db['FaxInteraction'][_0x8d9f('0x156')](db['User'],{'as':_0x8d9f('0x173'),'foreignKey':_0x8d9f('0x11c')});db['FaxInteraction'][_0x8d9f('0x12d')](db['Tag'],{'through':'fax_interaction_has_tags','as':'Tags'});db['FaxInteraction'][_0x8d9f('0x12d')](db['Tag'],{'through':_0x8d9f('0x182'),'as':_0x8d9f('0x175')});db[_0x8d9f('0x51')][_0x8d9f('0x12d')](db['User'],{'as':_0x8d9f('0x176'),'through':_0x8d9f('0x183'),'foreignKey':_0x8d9f('0x184')});db[_0x8d9f('0x53')]['belongsTo'](db[_0x8d9f('0x14')],{'onDelete':'cascade','as':_0x8d9f('0x14')});db[_0x8d9f('0x53')][_0x8d9f('0x156')](db['FaxInteraction'],{'as':'Interaction','foreignKey':_0x8d9f('0x184')});db[_0x8d9f('0x53')][_0x8d9f('0x156')](db[_0x8d9f('0x130')],{'onDelete':_0x8d9f('0x11b'),'as':_0x8d9f('0x165')});db['FaxMessage'][_0x8d9f('0x156')](db[_0x8d9f('0x177')],{'as':_0x8d9f('0x177'),'foreignKey':_0x8d9f('0x185')});db['FaxMessage'][_0x8d9f('0x156')](db['FaxAccount'],{'as':_0x8d9f('0x172'),'foreignKey':_0x8d9f('0x17f')});db['FaxQueue']['belongsToMany'](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x15a'),'through':_0x8d9f('0x37')});db[_0x8d9f('0x55')][_0x8d9f('0x12d')](db[_0x8d9f('0xed')],{'through':_0x8d9f('0x186'),'as':_0x8d9f('0x15b')});db[_0x8d9f('0x187')][_0x8d9f('0x156')](db['FaxAccount'],{});db[_0x8d9f('0x187')][_0x8d9f('0x156')](db[_0x8d9f('0xfd')],{'as':_0x8d9f('0x16e'),'foreignKey':_0x8d9f('0x16f')});db['FaxQueueReport'][_0x8d9f('0x156')](db['CmContact'],{'as':_0x8d9f('0x165'),'foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x187')][_0x8d9f('0x156')](db[_0x8d9f('0x51')],{});db[_0x8d9f('0x187')][_0x8d9f('0x156')](db[_0x8d9f('0x53')],{});db['FaxQueueReport']['belongsTo'](db[_0x8d9f('0x14')],{});db['FaxQueueReport'][_0x8d9f('0x156')](db[_0x8d9f('0x55')],{});db['SmsAccount'][_0x8d9f('0x120')](db[_0x8d9f('0x86')],{'as':_0x8d9f('0x188'),'foreignKey':_0x8d9f('0x189'),'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x57')][_0x8d9f('0x120')](db[_0x8d9f('0x84')],{'as':_0x8d9f('0x16c'),'foreignKey':'SmsAccountId'});db[_0x8d9f('0x57')][_0x8d9f('0x120')](db[_0x8d9f('0x5c')],{'as':_0x8d9f('0x15f'),'foreignKey':'SmsAccountId'});db[_0x8d9f('0x57')]['hasMany'](db[_0x8d9f('0x5a')],{'as':_0x8d9f('0x180')});db[_0x8d9f('0x57')][_0x8d9f('0x120')](db['SmsApplication'],{'as':_0x8d9f('0x14e'),'foreignKey':_0x8d9f('0x189'),'onDelete':_0x8d9f('0x11b')});db['SmsAccount'][_0x8d9f('0x156')](db[_0x8d9f('0xfd')],{'as':'List','foreignKey':_0x8d9f('0x16f')});db['SmsAccount'][_0x8d9f('0x156')](db[_0x8d9f('0x8b')],{'as':_0x8d9f('0x158'),'foreignKey':'mandatoryDispositionPauseId'});db[_0x8d9f('0x57')][_0x8d9f('0x12d')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x15a'),'through':'user_has_sms_accounts'});db['SmsApplication'][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x58')]['belongsTo'](db[_0x8d9f('0x5e')],{'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x58')][_0x8d9f('0x156')](db[_0x8d9f('0x57')],{'onDelete':'restrict'});db[_0x8d9f('0x58')][_0x8d9f('0x156')](db[_0x8d9f('0x8a')],{'onDelete':_0x8d9f('0x169'),'foreignKey':_0x8d9f('0x157')});db['SmsApplication'][_0x8d9f('0x156')](db[_0x8d9f('0x92')],{'onDelete':_0x8d9f('0x169'),'foreignKey':'TagId'});db['SmsInteraction'][_0x8d9f('0x120')](db[_0x8d9f('0x5c')],{'as':_0x8d9f('0x15f'),'onDelete':'cascade','foreignKey':_0x8d9f('0x18a')});db[_0x8d9f('0x5a')][_0x8d9f('0x156')](db[_0x8d9f('0x57')],{'as':_0x8d9f('0x172'),'foreignKey':_0x8d9f('0x189')});db[_0x8d9f('0x5a')][_0x8d9f('0x156')](db[_0x8d9f('0x130')],{'as':_0x8d9f('0x165'),'foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x5a')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x173'),'foreignKey':'UserId'});db[_0x8d9f('0x5a')][_0x8d9f('0x12d')](db[_0x8d9f('0x92')],{'through':_0x8d9f('0x18b'),'as':_0x8d9f('0x174')});db['SmsInteraction'][_0x8d9f('0x12d')](db['Tag'],{'through':_0x8d9f('0x18b'),'as':_0x8d9f('0x175')});db[_0x8d9f('0x5a')]['belongsToMany'](db[_0x8d9f('0x14')],{'as':'Users','through':_0x8d9f('0x137'),'foreignKey':_0x8d9f('0x18a')});db[_0x8d9f('0x5c')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x14')});db[_0x8d9f('0x5c')]['belongsTo'](db[_0x8d9f('0x130')],{'onDelete':_0x8d9f('0x11b'),'as':'Contact'});db[_0x8d9f('0x5c')][_0x8d9f('0x156')](db[_0x8d9f('0x5a')],{'onDelete':'cascade','as':_0x8d9f('0x179'),'foreignKey':_0x8d9f('0x18a')});db[_0x8d9f('0x5c')]['belongsTo'](db['SmsAccount'],{'as':_0x8d9f('0x172'),'foreignKey':'SmsAccountId'});db['SmsQueue'][_0x8d9f('0x12d')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x15a'),'through':_0x8d9f('0x13d'),'foreignKey':_0x8d9f('0x18c')});db[_0x8d9f('0x5e')][_0x8d9f('0x12d')](db['Team'],{'through':_0x8d9f('0x18d'),'as':_0x8d9f('0x15b')});db[_0x8d9f('0x60')][_0x8d9f('0x120')](db[_0x8d9f('0x86')],{'as':'Dispositions','foreignKey':_0x8d9f('0x18e'),'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x60')][_0x8d9f('0x120')](db[_0x8d9f('0x84')],{'as':_0x8d9f('0x16c'),'foreignKey':_0x8d9f('0x18e')});db[_0x8d9f('0x60')][_0x8d9f('0x120')](db[_0x8d9f('0x63')],{'as':'Interactions','foreignKey':_0x8d9f('0x18e')});db[_0x8d9f('0x60')]['hasMany'](db[_0x8d9f('0x65')],{'as':'Messages','foreignKey':_0x8d9f('0x18e')});db[_0x8d9f('0x60')][_0x8d9f('0x120')](db['OpenchannelApplication'],{'as':'Applications','foreignKey':'OpenchannelAccountId','onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x60')]['belongsTo'](db[_0x8d9f('0xfd')],{'as':_0x8d9f('0x16e'),'foreignKey':_0x8d9f('0x16f')});db[_0x8d9f('0x60')][_0x8d9f('0x156')](db['Pause'],{'as':'mandatoryDispositionPause','foreignKey':_0x8d9f('0x159')});db[_0x8d9f('0x60')][_0x8d9f('0x12d')](db['User'],{'as':_0x8d9f('0x15a'),'through':_0x8d9f('0x18f')});db[_0x8d9f('0x61')][_0x8d9f('0x156')](db['User'],{'onDelete':'restrict'});db['OpenchannelApplication']['belongsTo'](db[_0x8d9f('0x13e')],{'onDelete':_0x8d9f('0x169'),'foreignKey':_0x8d9f('0x190')});db[_0x8d9f('0x61')][_0x8d9f('0x156')](db[_0x8d9f('0x60')],{'onDelete':'restrict','foreignKey':_0x8d9f('0x18e')});db[_0x8d9f('0x61')][_0x8d9f('0x156')](db[_0x8d9f('0x8a')],{'onDelete':_0x8d9f('0x169'),'foreignKey':'IntervalId'});db[_0x8d9f('0x61')]['belongsTo'](db[_0x8d9f('0x92')],{'onDelete':_0x8d9f('0x169'),'foreignKey':'TagId'});db[_0x8d9f('0x63')][_0x8d9f('0x120')](db[_0x8d9f('0x65')],{'as':_0x8d9f('0x15f'),'onDelete':'cascade','foreignKey':_0x8d9f('0x191')});db[_0x8d9f('0x63')][_0x8d9f('0x156')](db['OpenchannelAccount'],{'as':_0x8d9f('0x172'),'foreignKey':'OpenchannelAccountId'});db[_0x8d9f('0x63')][_0x8d9f('0x156')](db[_0x8d9f('0x130')],{'as':'Contact','foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x63')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x173'),'foreignKey':_0x8d9f('0x11c')});db[_0x8d9f('0x63')][_0x8d9f('0x12d')](db[_0x8d9f('0x92')],{'through':_0x8d9f('0x192'),'as':_0x8d9f('0x174')});db[_0x8d9f('0x63')][_0x8d9f('0x12d')](db[_0x8d9f('0x92')],{'through':'openchannel_interaction_has_tags','as':'ThroughTags'});db[_0x8d9f('0x63')]['belongsToMany'](db['User'],{'as':'Users','through':_0x8d9f('0x193'),'foreignKey':'OpenchannelInteractionId'});db[_0x8d9f('0x65')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'onDelete':_0x8d9f('0x11b'),'as':_0x8d9f('0x14')});db[_0x8d9f('0x65')][_0x8d9f('0x156')](db[_0x8d9f('0x130')],{'onDelete':_0x8d9f('0x11b'),'as':'Contact'});db['OpenchannelMessage'][_0x8d9f('0x156')](db[_0x8d9f('0x63')],{'onDelete':_0x8d9f('0x11b'),'as':_0x8d9f('0x179'),'foreignKey':'OpenchannelInteractionId'});db[_0x8d9f('0x65')][_0x8d9f('0x156')](db['Attachment'],{'as':_0x8d9f('0x177'),'foreignKey':_0x8d9f('0x185')});db[_0x8d9f('0x65')]['belongsTo'](db[_0x8d9f('0x60')],{'as':_0x8d9f('0x172'),'foreignKey':_0x8d9f('0x18e')});db['OpenchannelQueue']['belongsToMany'](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x15a'),'through':_0x8d9f('0x39'),'foreignKey':_0x8d9f('0x190')});db[_0x8d9f('0x13e')][_0x8d9f('0x12d')](db['Team'],{'through':_0x8d9f('0x194'),'as':_0x8d9f('0x15b')});db[_0x8d9f('0x17a')][_0x8d9f('0x120')](db[_0x8d9f('0x86')],{'as':_0x8d9f('0x188'),'foreignKey':'ChatWebsiteId','onDelete':'cascade'});db['ChatWebsite']['hasMany'](db[_0x8d9f('0x84')],{'as':_0x8d9f('0x16c'),'foreignKey':_0x8d9f('0x17b')});db['ChatWebsite']['hasMany'](db[_0x8d9f('0x73')],{'as':_0x8d9f('0x195')});db[_0x8d9f('0x17a')][_0x8d9f('0x120')](db[_0x8d9f('0x126')],{'as':_0x8d9f('0x180')});db['ChatWebsite']['hasMany'](db[_0x8d9f('0x68')],{'as':_0x8d9f('0x14e'),'foreignKey':_0x8d9f('0x17b'),'onDelete':'cascade'});db[_0x8d9f('0x17a')]['hasMany'](db['ChatMessage'],{'as':'Messages'});db['ChatWebsite'][_0x8d9f('0x156')](db['CmList'],{'as':'List','foreignKey':'ListId'});db[_0x8d9f('0x17a')][_0x8d9f('0x156')](db[_0x8d9f('0x8a')],{'as':_0x8d9f('0x8a'),'foreignKey':'IntervalId'});db['ChatWebsite'][_0x8d9f('0x156')](db['MailAccount'],{'as':'MailAccount','foreignKey':_0x8d9f('0x168')});db[_0x8d9f('0x17a')]['belongsTo'](db['Pause'],{'as':_0x8d9f('0x158'),'foreignKey':_0x8d9f('0x159')});db[_0x8d9f('0x17a')][_0x8d9f('0x12d')](db[_0x8d9f('0x14')],{'as':'Agents','through':'user_has_chat_websites'});db['OpenchannelQueueReport'][_0x8d9f('0x156')](db['OpenchannelAccount'],{});db[_0x8d9f('0x67')]['belongsTo'](db[_0x8d9f('0xfd')],{'as':'List','foreignKey':_0x8d9f('0x16f')});db[_0x8d9f('0x67')][_0x8d9f('0x156')](db[_0x8d9f('0x130')],{'as':_0x8d9f('0x165'),'foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x67')][_0x8d9f('0x156')](db[_0x8d9f('0x63')],{});db['OpenchannelQueueReport'][_0x8d9f('0x156')](db['OpenchannelMessage'],{});db[_0x8d9f('0x67')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{});db[_0x8d9f('0x67')][_0x8d9f('0x156')](db[_0x8d9f('0x13e')],{});db['ChatApplication'][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'as':'Agent','foreignKey':_0x8d9f('0x11c'),'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x68')][_0x8d9f('0x156')](db[_0x8d9f('0x6f')],{'as':_0x8d9f('0x196'),'foreignKey':_0x8d9f('0x197'),'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x68')][_0x8d9f('0x156')](db[_0x8d9f('0x17a')],{'as':_0x8d9f('0x198'),'foreignKey':'ChatWebsiteId','onDelete':'restrict'});db[_0x8d9f('0x68')][_0x8d9f('0x156')](db['Tag'],{'onDelete':_0x8d9f('0x169'),'foreignKey':'TagId'});db['ChatInteraction'][_0x8d9f('0x120')](db[_0x8d9f('0x6b')],{'as':'Messages','onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x199')});db['ChatInteraction'][_0x8d9f('0x156')](db['ChatWebsite'],{'as':_0x8d9f('0x172'),'foreignKey':_0x8d9f('0x17b')});db[_0x8d9f('0x126')]['belongsTo'](db[_0x8d9f('0x130')],{'as':'Contact','foreignKey':'ContactId'});db[_0x8d9f('0x126')]['belongsTo'](db['User'],{'as':_0x8d9f('0x173'),'foreignKey':'UserId'});db['ChatInteraction'][_0x8d9f('0x12d')](db[_0x8d9f('0x92')],{'through':_0x8d9f('0x19a'),'as':_0x8d9f('0x174')});db['ChatInteraction'][_0x8d9f('0x12d')](db[_0x8d9f('0x92')],{'through':_0x8d9f('0x19a'),'as':_0x8d9f('0x175')});db[_0x8d9f('0x126')][_0x8d9f('0x12d')](db[_0x8d9f('0x14')],{'as':'Users','through':_0x8d9f('0x135'),'foreignKey':'ChatInteractionId'});db[_0x8d9f('0x6b')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'onDelete':_0x8d9f('0x11b'),'as':_0x8d9f('0x14')});db[_0x8d9f('0x6b')]['belongsTo'](db[_0x8d9f('0x130')],{'onDelete':_0x8d9f('0x11b'),'as':_0x8d9f('0x165'),'foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x6b')]['belongsTo'](db[_0x8d9f('0x126')],{'onDelete':_0x8d9f('0x11b'),'as':'Interaction','foreignKey':_0x8d9f('0x199')});db['ChatMessage'][_0x8d9f('0x156')](db[_0x8d9f('0x177')],{'as':_0x8d9f('0x177'),'foreignKey':_0x8d9f('0x185')});db['ChatMessage'][_0x8d9f('0x156')](db[_0x8d9f('0x17a')],{'as':_0x8d9f('0x172'),'foreignKey':'ChatWebsiteId'});db[_0x8d9f('0x6d')]['hasMany'](db['Attachment'],{'as':_0x8d9f('0x178'),'foreignKey':_0x8d9f('0x17c'),'onDelete':_0x8d9f('0x11b'),'hooks':!![]});db[_0x8d9f('0x6d')][_0x8d9f('0x156')](db[_0x8d9f('0x130')],{'onDelete':_0x8d9f('0x11b'),'as':_0x8d9f('0x165'),'foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x6d')][_0x8d9f('0x156')](db[_0x8d9f('0x17a')],{'as':_0x8d9f('0x172'),'foreignKey':'ChatWebsiteId'});db[_0x8d9f('0x6f')]['belongsToMany'](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x15a'),'through':_0x8d9f('0x34'),'hooks':!![]});db[_0x8d9f('0x6f')]['belongsToMany'](db[_0x8d9f('0xed')],{'through':_0x8d9f('0x19b'),'as':_0x8d9f('0x15b')});db['ChatGroup'][_0x8d9f('0x120')](db[_0x8d9f('0xd7')],{'as':_0x8d9f('0x15f'),'foreignKey':_0x8d9f('0x19c'),'onDelete':'cascade'});db[_0x8d9f('0x71')][_0x8d9f('0x12d')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x152'),'through':_0x8d9f('0x12f')});db[_0x8d9f('0x73')][_0x8d9f('0x156')](db[_0x8d9f('0x17a')],{'as':_0x8d9f('0x198'),'foreignKey':'ChatWebsiteId'});db['CmCompany'][_0x8d9f('0x120')](db[_0x8d9f('0x130')],{'as':_0x8d9f('0x131'),'foreignKey':_0x8d9f('0x19d')});db['CmContact'][_0x8d9f('0x120')](db['CmContactHasItem'],{'as':_0x8d9f('0x19e'),'foreignKey':_0x8d9f('0x19f')});db[_0x8d9f('0x130')][_0x8d9f('0x120')](db[_0x8d9f('0x77')],{'as':_0x8d9f('0x1a0'),'foreignKey':_0x8d9f('0x166')});db['CmContact'][_0x8d9f('0x120')](db[_0x8d9f('0x7b')],{'as':_0x8d9f('0x122'),'foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x130')][_0x8d9f('0x120')](db[_0x8d9f('0x123')],{'as':_0x8d9f('0x154'),'foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x130')]['hasMany'](db[_0x8d9f('0x7e')],{'as':_0x8d9f('0x7e'),'foreignKey':'ContactId'});db['CmContact'][_0x8d9f('0x120')](db[_0x8d9f('0xdb')],{'as':_0x8d9f('0x1a1'),'foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x130')][_0x8d9f('0x120')](db[_0x8d9f('0x63')],{'as':'OpenchannelInteractions','foreignKey':'ContactId','onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x130')]['hasMany'](db[_0x8d9f('0x126')],{'as':_0x8d9f('0x127'),'foreignKey':_0x8d9f('0x166'),'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x130')][_0x8d9f('0x120')](db[_0x8d9f('0x5a')],{'as':_0x8d9f('0x128'),'foreignKey':_0x8d9f('0x166'),'onDelete':_0x8d9f('0x169')});db['CmContact'][_0x8d9f('0x120')](db[_0x8d9f('0x51')],{'as':_0x8d9f('0x136'),'foreignKey':'ContactId','onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x130')][_0x8d9f('0x120')](db[_0x8d9f('0x43')],{'as':_0x8d9f('0x129'),'foreignKey':_0x8d9f('0x166'),'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x130')]['belongsTo'](db[_0x8d9f('0x74')],{'as':_0x8d9f('0x1a2'),'foreignKey':_0x8d9f('0x19d')});db[_0x8d9f('0x130')][_0x8d9f('0x156')](db[_0x8d9f('0xfd')],{'as':_0x8d9f('0x16e'),'foreignKey':_0x8d9f('0x16f'),'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x130')]['belongsToMany'](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x176'),'through':_0x8d9f('0x132')});db[_0x8d9f('0x130')][_0x8d9f('0x12d')](db[_0x8d9f('0x92')],{'as':_0x8d9f('0x174'),'through':_0x8d9f('0x1a3')});db['CmContact'][_0x8d9f('0x12d')](db[_0x8d9f('0x92')],{'through':_0x8d9f('0x1a3'),'as':_0x8d9f('0x175')});db['CmHopper']['hasMany'](db[_0x8d9f('0x96')],{'as':'AdditionalPhones','foreignKey':_0x8d9f('0x1a4')});db[_0x8d9f('0x77')][_0x8d9f('0x156')](db[_0x8d9f('0x130')],{'as':_0x8d9f('0x165'),'foreignKey':_0x8d9f('0x166'),'onDelete':'cascade'});db[_0x8d9f('0x77')][_0x8d9f('0x156')](db[_0x8d9f('0xfd')],{'as':_0x8d9f('0x16e'),'foreignKey':_0x8d9f('0x16f'),'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x77')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x1a5'),'foreignKey':_0x8d9f('0x11c')});db['CmHopper']['belongsTo'](db[_0x8d9f('0x1e')],{'as':'Queue','foreignKey':'VoiceQueueId','onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x77')][_0x8d9f('0x156')](db[_0x8d9f('0xf0')],{'as':'Campaign','foreignKey':_0x8d9f('0x1a6'),'onDelete':'cascade'});db['CmHopper'][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x173'),'foreignKey':_0x8d9f('0x1a7')});db[_0x8d9f('0x79')][_0x8d9f('0x156')](db['CmContact'],{'as':'Contact','foreignKey':'ContactId','onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x79')]['belongsTo'](db[_0x8d9f('0xfd')],{'as':_0x8d9f('0x16e'),'foreignKey':_0x8d9f('0x16f'),'onDelete':'cascade'});db['CmHopperBlack'][_0x8d9f('0x156')](db[_0x8d9f('0x1e')],{'as':_0x8d9f('0x196'),'foreignKey':_0x8d9f('0x153'),'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x79')][_0x8d9f('0x156')](db[_0x8d9f('0xf0')],{'as':_0x8d9f('0xf0'),'foreignKey':_0x8d9f('0x1a6'),'onDelete':'cascade'});db[_0x8d9f('0x82')][_0x8d9f('0x120')](db[_0x8d9f('0x88')],{'as':{'plural':_0x8d9f('0x1a8'),'singular':'OneAll'},'foreignKey':'AutomationAllId','onDelete':_0x8d9f('0x11b'),'hooks':!![]});db[_0x8d9f('0x82')][_0x8d9f('0x120')](db['Condition'],{'as':{'plural':_0x8d9f('0x1a9'),'singular':'OneAny'},'foreignKey':_0x8d9f('0x1aa'),'onDelete':_0x8d9f('0x11b'),'hooks':!![]});db[_0x8d9f('0x82')][_0x8d9f('0x120')](db[_0x8d9f('0x81')],{'as':_0x8d9f('0x1ab'),'foreignKey':_0x8d9f('0x1ac'),'onDelete':_0x8d9f('0x11b'),'hooks':!![]});db['Disposition']['hasMany'](db[_0x8d9f('0x86')],{'as':_0x8d9f('0x188'),'foreignKey':_0x8d9f('0x1ad'),'onDelete':'cascade'});db['Interval']['hasMany'](db[_0x8d9f('0x8a')],{'as':_0x8d9f('0x1ae'),'foreignKey':'IntervalId','onDelete':_0x8d9f('0x11b'),'hooks':!![],'required':![]});db['Interval'][_0x8d9f('0x120')](db[_0x8d9f('0x14b')],{'as':_0x8d9f('0x1af'),'foreignKey':_0x8d9f('0x157'),'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x8a')][_0x8d9f('0x120')](db[_0x8d9f('0x46')],{'as':_0x8d9f('0x1b0'),'foreignKey':_0x8d9f('0x157')});db['Interval']['hasMany'](db['ChatApplication'],{'as':_0x8d9f('0x1b1'),'foreignKey':_0x8d9f('0x157')});db[_0x8d9f('0x8a')]['hasMany'](db[_0x8d9f('0x4f')],{'as':'FaxApplications','foreignKey':_0x8d9f('0x157')});db[_0x8d9f('0x8a')]['hasMany'](db[_0x8d9f('0x58')],{'as':_0x8d9f('0x1b2'),'foreignKey':_0x8d9f('0x157')});db[_0x8d9f('0x90')][_0x8d9f('0x156')](db[_0x8d9f('0x40')],{});db[_0x8d9f('0x90')][_0x8d9f('0x156')](db[_0x8d9f('0xa1')],{'foreignKey':_0x8d9f('0x1b3')});db[_0x8d9f('0x90')][_0x8d9f('0x156')](db[_0x8d9f('0x9f')],{'foreignKey':_0x8d9f('0x1b4')});db[_0x8d9f('0x14f')][_0x8d9f('0x12d')](db[_0x8d9f('0x1c')],{'as':_0x8d9f('0x1b5'),'through':_0x8d9f('0x151'),'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x92')][_0x8d9f('0x12d')](db[_0x8d9f('0x130')],{'through':_0x8d9f('0x1a3')});db[_0x8d9f('0x92')][_0x8d9f('0x12d')](db[_0x8d9f('0x126')],{'through':_0x8d9f('0x19a')});db['Tag'][_0x8d9f('0x12d')](db[_0x8d9f('0x43')],{'through':_0x8d9f('0x1b6')});db['Tag'][_0x8d9f('0x12d')](db[_0x8d9f('0x5a')],{'through':'sms_interaction_has_tags'});db['Tag']['belongsToMany'](db[_0x8d9f('0x51')],{'through':'fax_interaction_has_tags'});db[_0x8d9f('0x92')]['belongsToMany'](db[_0x8d9f('0x63')],{'through':_0x8d9f('0x192')});db[_0x8d9f('0x92')][_0x8d9f('0x12d')](db[_0x8d9f('0x10a')],{'through':_0x8d9f('0x1b7')});db['CmContactHasItem'][_0x8d9f('0x156')](db[_0x8d9f('0x1b8')],{'as':_0x8d9f('0x1b9'),'foreignKey':_0x8d9f('0x1ba')});db[_0x8d9f('0x96')]['belongsTo'](db[_0x8d9f('0x77')],{'as':_0x8d9f('0x1bb'),'foreignKey':_0x8d9f('0x1a4')});db[_0x8d9f('0x95')][_0x8d9f('0x156')](db[_0x8d9f('0x130')],{'as':_0x8d9f('0x165'),'foreignKey':_0x8d9f('0x19f')});db[_0x8d9f('0x9a')][_0x8d9f('0x120')](db[_0x8d9f('0x88')],{'as':{'plural':'AllConditions','singular':'AllCondition'},'foreignKey':_0x8d9f('0x1bc'),'onDelete':_0x8d9f('0x11b'),'hooks':!![]});db[_0x8d9f('0x9a')]['hasMany'](db[_0x8d9f('0x88')],{'as':{'plural':_0x8d9f('0x1bd'),'singular':_0x8d9f('0x1be')},'foreignKey':_0x8d9f('0x1bf'),'onDelete':_0x8d9f('0x11b'),'hooks':!![]});db['Trigger'][_0x8d9f('0x120')](db[_0x8d9f('0x81')],{'as':_0x8d9f('0x1ab'),'foreignKey':'TriggerId','onDelete':_0x8d9f('0x11b'),'hooks':!![]});db[_0x8d9f('0x9f')][_0x8d9f('0x120')](db['AnalyticFieldReport'],{'as':_0x8d9f('0x1c0'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1b4'),'hooks':!![]});db[_0x8d9f('0xa1')][_0x8d9f('0x120')](db['AnalyticFieldReport'],{'as':_0x8d9f('0x1c0'),'onDelete':_0x8d9f('0x11b'),'foreignKey':'DefaultReportId'});db[_0x8d9f('0xa4')][_0x8d9f('0x120')](db[_0x8d9f('0xa6')],{'as':_0x8d9f('0x1c0'),'onDelete':'cascade','foreignKey':_0x8d9f('0x1c1')});db[_0x8d9f('0xa6')][_0x8d9f('0x156')](db[_0x8d9f('0xa4')],{'foreignKey':_0x8d9f('0x1c1')});db[_0x8d9f('0xa9')]['hasMany'](db['SalesforceConfiguration'],{'as':_0x8d9f('0x1c2'),'onDelete':'cascade','foreignKey':_0x8d9f('0x1c3')});db['SalesforceConfiguration'][_0x8d9f('0x120')](db[_0x8d9f('0xac')],{'as':'Subjects','onDelete':'cascade','foreignKey':'SubjectId'});db[_0x8d9f('0xaa')]['hasMany'](db['SalesforceField'],{'as':'Descriptions','onDelete':_0x8d9f('0x11b'),'foreignKey':'DescriptionId'});db[_0x8d9f('0xaa')][_0x8d9f('0x120')](db['SalesforceField'],{'as':_0x8d9f('0x1c0'),'onDelete':'cascade','foreignKey':_0x8d9f('0x1c4')});db[_0x8d9f('0xaa')][_0x8d9f('0x156')](db[_0x8d9f('0xa9')],{'as':_0x8d9f('0x172'),'foreignKey':'AccountId'});db[_0x8d9f('0xac')][_0x8d9f('0x120')](db[_0x8d9f('0xac')],{'as':'Subject','foreignKey':'SubjectId'});db['SalesforceField'][_0x8d9f('0x120')](db[_0x8d9f('0xac')],{'as':'Description','foreignKey':'DescriptionId'});db['SalesforceField'][_0x8d9f('0x120')](db[_0x8d9f('0xac')],{'as':_0x8d9f('0x1c5'),'foreignKey':_0x8d9f('0x1c4')});db[_0x8d9f('0xac')][_0x8d9f('0x156')](db['Variable'],{'as':_0x8d9f('0x9c'),'foreignKey':_0x8d9f('0x1c6')});db[_0x8d9f('0x1c7')][_0x8d9f('0x120')](db[_0x8d9f('0x1c8')],{'as':_0x8d9f('0x1c2'),'onDelete':'cascade','foreignKey':_0x8d9f('0x1c3')});db[_0x8d9f('0x1c8')]['hasMany'](db[_0x8d9f('0x1c9')],{'as':'Subjects','onDelete':'cascade','foreignKey':_0x8d9f('0x1ca')});db[_0x8d9f('0x1c8')][_0x8d9f('0x120')](db[_0x8d9f('0x1c9')],{'as':'Descriptions','onDelete':_0x8d9f('0x11b'),'foreignKey':'DescriptionId'});db[_0x8d9f('0x1c8')][_0x8d9f('0x120')](db[_0x8d9f('0x1c9')],{'as':'Fields','onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1c4')});db[_0x8d9f('0x1c8')][_0x8d9f('0x156')](db[_0x8d9f('0x1c7')],{'as':'Account','foreignKey':_0x8d9f('0x1c3')});db[_0x8d9f('0x1c9')][_0x8d9f('0x120')](db[_0x8d9f('0x1c9')],{'as':_0x8d9f('0x1cb'),'foreignKey':'SubjectId'});db[_0x8d9f('0x1c9')][_0x8d9f('0x120')](db[_0x8d9f('0x1c9')],{'as':_0x8d9f('0x1cc'),'foreignKey':_0x8d9f('0x1cd')});db[_0x8d9f('0x1c9')][_0x8d9f('0x120')](db[_0x8d9f('0x1c9')],{'as':_0x8d9f('0x1c5'),'foreignKey':'FieldId'});db[_0x8d9f('0x1c9')]['belongsTo'](db[_0x8d9f('0x9c')],{'as':'Variable','foreignKey':_0x8d9f('0x1c6')});db[_0x8d9f('0xb0')][_0x8d9f('0x120')](db[_0x8d9f('0xb2')],{'as':'Configurations','onDelete':_0x8d9f('0x11b'),'foreignKey':'AccountId'});db['DeskConfiguration'][_0x8d9f('0x120')](db[_0x8d9f('0xb4')],{'as':_0x8d9f('0x1ce'),'onDelete':_0x8d9f('0x11b'),'foreignKey':'SubjectId'});db[_0x8d9f('0xb2')][_0x8d9f('0x120')](db[_0x8d9f('0xb4')],{'as':_0x8d9f('0x1cf'),'onDelete':_0x8d9f('0x11b'),'foreignKey':'DescriptionId'});db[_0x8d9f('0xb2')][_0x8d9f('0x120')](db[_0x8d9f('0xb4')],{'as':_0x8d9f('0x1c0'),'onDelete':'cascade','foreignKey':'FieldId'});db[_0x8d9f('0xb2')][_0x8d9f('0x156')](db[_0x8d9f('0xb0')],{'as':_0x8d9f('0x172'),'foreignKey':_0x8d9f('0x1c3')});db[_0x8d9f('0xb2')][_0x8d9f('0x12d')](db[_0x8d9f('0x92')],{'through':'int_desk_configuration_has_tags'});db['DeskField'][_0x8d9f('0x120')](db[_0x8d9f('0xb4')],{'as':'Subject','foreignKey':_0x8d9f('0x1ca')});db['DeskField']['hasMany'](db[_0x8d9f('0xb4')],{'as':_0x8d9f('0x1cc'),'foreignKey':_0x8d9f('0x1cd')});db['DeskField']['hasMany'](db['DeskField'],{'as':_0x8d9f('0x1c5'),'foreignKey':'FieldId'});db[_0x8d9f('0xb4')][_0x8d9f('0x156')](db[_0x8d9f('0x9c')],{'as':_0x8d9f('0x9c'),'foreignKey':_0x8d9f('0x1c6')});db['ZohoAccount'][_0x8d9f('0x120')](db[_0x8d9f('0xb8')],{'as':_0x8d9f('0x1c2'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1c3')});db[_0x8d9f('0xb8')][_0x8d9f('0x120')](db[_0x8d9f('0xb9')],{'as':_0x8d9f('0x1ce'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1ca')});db['ZohoConfiguration'][_0x8d9f('0x120')](db[_0x8d9f('0xb9')],{'as':_0x8d9f('0x1cf'),'onDelete':'cascade','foreignKey':_0x8d9f('0x1cd')});db[_0x8d9f('0xb8')][_0x8d9f('0x120')](db[_0x8d9f('0xb9')],{'as':_0x8d9f('0x1c0'),'onDelete':'cascade','foreignKey':_0x8d9f('0x1c4')});db[_0x8d9f('0xb8')]['belongsTo'](db[_0x8d9f('0xb6')],{'as':_0x8d9f('0x172'),'foreignKey':'AccountId'});db['ZohoField'][_0x8d9f('0x120')](db[_0x8d9f('0xb9')],{'as':'Subject','foreignKey':_0x8d9f('0x1ca')});db[_0x8d9f('0xb9')][_0x8d9f('0x120')](db[_0x8d9f('0xb9')],{'as':'Description','foreignKey':'DescriptionId'});db['ZohoField']['hasMany'](db[_0x8d9f('0xb9')],{'as':_0x8d9f('0x1c5'),'foreignKey':_0x8d9f('0x1c4')});db[_0x8d9f('0xb9')][_0x8d9f('0x156')](db['Variable'],{'as':'Variable','foreignKey':'VariableId'});db[_0x8d9f('0xbb')][_0x8d9f('0x120')](db[_0x8d9f('0xbc')],{'as':_0x8d9f('0x1c2'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1c3')});db[_0x8d9f('0xbc')][_0x8d9f('0x120')](db[_0x8d9f('0x1d0')],{'as':_0x8d9f('0x1ce'),'foreignKey':_0x8d9f('0x1ca')});db['ZendeskConfiguration'][_0x8d9f('0x120')](db['ZendeskField'],{'as':_0x8d9f('0x1cf'),'foreignKey':'DescriptionId'});db[_0x8d9f('0xbc')]['hasMany'](db['ZendeskField'],{'as':_0x8d9f('0x1c0'),'foreignKey':_0x8d9f('0x1c4')});db[_0x8d9f('0xbc')][_0x8d9f('0x156')](db[_0x8d9f('0xbb')],{'as':_0x8d9f('0x172'),'foreignKey':_0x8d9f('0x1c3')});db[_0x8d9f('0xbc')][_0x8d9f('0x12d')](db[_0x8d9f('0x92')],{'through':_0x8d9f('0x1d1')});db[_0x8d9f('0x1d0')]['hasMany'](db['ZendeskField'],{'as':'Subject','foreignKey':_0x8d9f('0x1ca')});db[_0x8d9f('0x1d0')][_0x8d9f('0x120')](db[_0x8d9f('0x1d0')],{'as':_0x8d9f('0x1cc'),'foreignKey':_0x8d9f('0x1cd')});db['ZendeskField'][_0x8d9f('0x120')](db[_0x8d9f('0x1d0')],{'as':_0x8d9f('0x1c5'),'foreignKey':_0x8d9f('0x1c4')});db['ZendeskField'][_0x8d9f('0x156')](db[_0x8d9f('0x9c')],{'as':_0x8d9f('0x9c'),'foreignKey':_0x8d9f('0x1c6')});db[_0x8d9f('0x1d2')][_0x8d9f('0x120')](db['FreshdeskConfiguration'],{'as':_0x8d9f('0x1c2'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1c3')});db[_0x8d9f('0xc0')][_0x8d9f('0x120')](db['FreshdeskField'],{'as':_0x8d9f('0x1ce'),'onDelete':_0x8d9f('0x11b'),'foreignKey':'SubjectId'});db['FreshdeskConfiguration'][_0x8d9f('0x120')](db[_0x8d9f('0xc2')],{'as':'Descriptions','onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1cd')});db[_0x8d9f('0xc0')][_0x8d9f('0x120')](db[_0x8d9f('0xc2')],{'as':'Fields','onDelete':'cascade','foreignKey':'FieldId'});db[_0x8d9f('0xc0')][_0x8d9f('0x156')](db[_0x8d9f('0x1d2')],{'as':'Account','foreignKey':_0x8d9f('0x1c3')});db['FreshdeskConfiguration']['belongsToMany'](db[_0x8d9f('0x92')],{'through':_0x8d9f('0x1d3')});db[_0x8d9f('0xc2')][_0x8d9f('0x120')](db[_0x8d9f('0xc2')],{'as':_0x8d9f('0x1cb'),'foreignKey':_0x8d9f('0x1ca')});db['FreshdeskField'][_0x8d9f('0x120')](db[_0x8d9f('0xc2')],{'as':_0x8d9f('0x1cc'),'foreignKey':_0x8d9f('0x1cd')});db['FreshdeskField'][_0x8d9f('0x120')](db[_0x8d9f('0xc2')],{'as':'Field','foreignKey':_0x8d9f('0x1c4')});db['FreshdeskField']['belongsTo'](db[_0x8d9f('0x9c')],{'as':_0x8d9f('0x9c'),'foreignKey':_0x8d9f('0x1c6')});db[_0x8d9f('0xc3')][_0x8d9f('0x120')](db[_0x8d9f('0xc5')],{'as':_0x8d9f('0x1c2'),'onDelete':'cascade','foreignKey':_0x8d9f('0x1c3')});db[_0x8d9f('0xc5')][_0x8d9f('0x120')](db[_0x8d9f('0xc7')],{'as':'Subjects','foreignKey':_0x8d9f('0x1ca')});db[_0x8d9f('0xc5')][_0x8d9f('0x120')](db['VtigerField'],{'as':_0x8d9f('0x1cf'),'foreignKey':_0x8d9f('0x1cd')});db[_0x8d9f('0xc5')]['hasMany'](db[_0x8d9f('0xc7')],{'as':'Fields','foreignKey':_0x8d9f('0x1c4')});db[_0x8d9f('0xc5')]['belongsTo'](db[_0x8d9f('0xc3')],{'as':_0x8d9f('0x172'),'foreignKey':_0x8d9f('0x1c3')});db[_0x8d9f('0xc7')]['hasMany'](db['VtigerField'],{'as':_0x8d9f('0x1cb'),'foreignKey':'SubjectId'});db[_0x8d9f('0xc7')][_0x8d9f('0x120')](db[_0x8d9f('0xc7')],{'as':'Description','foreignKey':_0x8d9f('0x1cd')});db[_0x8d9f('0xc7')][_0x8d9f('0x120')](db['VtigerField'],{'as':_0x8d9f('0x1c5'),'foreignKey':'FieldId'});db[_0x8d9f('0xc7')]['belongsTo'](db[_0x8d9f('0x9c')],{'as':_0x8d9f('0x9c'),'foreignKey':'VariableId'});db[_0x8d9f('0xc9')][_0x8d9f('0x120')](db[_0x8d9f('0xca')],{'as':'Configurations','onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1c3')});db[_0x8d9f('0xca')][_0x8d9f('0x120')](db[_0x8d9f('0xcc')],{'as':_0x8d9f('0x1ce'),'foreignKey':_0x8d9f('0x1ca')});db[_0x8d9f('0xca')]['hasMany'](db['ServicenowField'],{'as':_0x8d9f('0x1cf'),'foreignKey':_0x8d9f('0x1cd')});db['ServicenowConfiguration'][_0x8d9f('0x120')](db['ServicenowField'],{'as':'Fields','foreignKey':_0x8d9f('0x1c4')});db[_0x8d9f('0xca')][_0x8d9f('0x156')](db['ServicenowAccount'],{'as':_0x8d9f('0x172'),'foreignKey':_0x8d9f('0x1c3')});db['ServicenowField'][_0x8d9f('0x120')](db[_0x8d9f('0xcc')],{'as':'Subject','foreignKey':'SubjectId'});db[_0x8d9f('0xcc')][_0x8d9f('0x120')](db[_0x8d9f('0xcc')],{'as':'Description','foreignKey':_0x8d9f('0x1cd')});db['ServicenowField'][_0x8d9f('0x120')](db[_0x8d9f('0xcc')],{'as':'Field','foreignKey':_0x8d9f('0x1c4')});db['ServicenowField']['belongsTo'](db[_0x8d9f('0x9c')],{'as':_0x8d9f('0x9c'),'foreignKey':_0x8d9f('0x1c6')});db[_0x8d9f('0xcd')][_0x8d9f('0x120')](db[_0x8d9f('0x1d4')],{'as':_0x8d9f('0x1c2'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1c3')});db[_0x8d9f('0xcd')]['belongsTo'](db[_0x8d9f('0x112')],{'as':'CloudProvider','foreignKey':_0x8d9f('0x167')});db[_0x8d9f('0x1d4')][_0x8d9f('0x120')](db[_0x8d9f('0xd0')],{'as':_0x8d9f('0x1ce'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1ca')});db[_0x8d9f('0x1d4')][_0x8d9f('0x120')](db['Dynamics365Field'],{'as':_0x8d9f('0x1cf'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1cd')});db['Dynamics365Configuration']['hasMany'](db['Dynamics365Field'],{'as':_0x8d9f('0x1c0'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1c4')});db['Dynamics365Configuration'][_0x8d9f('0x156')](db[_0x8d9f('0xcd')],{'as':_0x8d9f('0x172'),'foreignKey':_0x8d9f('0x1c3')});db[_0x8d9f('0xd0')][_0x8d9f('0x120')](db[_0x8d9f('0xd0')],{'as':_0x8d9f('0x1cb'),'foreignKey':_0x8d9f('0x1ca')});db[_0x8d9f('0xd0')][_0x8d9f('0x120')](db[_0x8d9f('0xd0')],{'as':_0x8d9f('0x1cc'),'foreignKey':_0x8d9f('0x1cd')});db[_0x8d9f('0xd0')][_0x8d9f('0x120')](db[_0x8d9f('0xd0')],{'as':'Field','foreignKey':_0x8d9f('0x1c4')});db[_0x8d9f('0xd0')]['belongsTo'](db[_0x8d9f('0x9c')],{'as':_0x8d9f('0x9c'),'foreignKey':_0x8d9f('0x1c6')});db['FreshsalesAccount'][_0x8d9f('0x120')](db['FreshsalesConfiguration'],{'as':_0x8d9f('0x1c2'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1c3')});db['FreshsalesConfiguration'][_0x8d9f('0x120')](db[_0x8d9f('0xd4')],{'as':_0x8d9f('0x1ce'),'foreignKey':_0x8d9f('0x1ca')});db[_0x8d9f('0xd3')][_0x8d9f('0x120')](db[_0x8d9f('0xd4')],{'as':'Descriptions','foreignKey':_0x8d9f('0x1cd')});db[_0x8d9f('0xd3')][_0x8d9f('0x120')](db['FreshsalesField'],{'as':_0x8d9f('0x1c0'),'foreignKey':_0x8d9f('0x1c4')});db[_0x8d9f('0xd3')][_0x8d9f('0x156')](db[_0x8d9f('0x1d5')],{'as':_0x8d9f('0x172'),'foreignKey':_0x8d9f('0x1c3')});db[_0x8d9f('0xd4')]['hasMany'](db['FreshsalesField'],{'as':'Subject','foreignKey':_0x8d9f('0x1ca')});db[_0x8d9f('0xd4')][_0x8d9f('0x120')](db['FreshsalesField'],{'as':_0x8d9f('0x1cc'),'foreignKey':_0x8d9f('0x1cd')});db[_0x8d9f('0xd4')][_0x8d9f('0x120')](db[_0x8d9f('0xd4')],{'as':_0x8d9f('0x1c5'),'foreignKey':_0x8d9f('0x1c4')});db[_0x8d9f('0xd4')][_0x8d9f('0x156')](db[_0x8d9f('0x9c')],{'as':_0x8d9f('0x9c'),'foreignKey':_0x8d9f('0x1c6')});db['ChatQueueReport'][_0x8d9f('0x156')](db['ChatWebsite'],{});db['ChatQueueReport']['belongsTo'](db[_0x8d9f('0xfd')],{'as':'List','foreignKey':'ListId'});db[_0x8d9f('0x1d6')]['belongsTo'](db['CmContact'],{'as':'Contact','foreignKey':'ContactId'});db[_0x8d9f('0x1d6')][_0x8d9f('0x156')](db['ChatInteraction'],{});db[_0x8d9f('0x1d6')][_0x8d9f('0x156')](db[_0x8d9f('0x6b')],{});db[_0x8d9f('0x1d6')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{});db[_0x8d9f('0x1d6')]['belongsTo'](db['ChatQueue'],{});db[_0x8d9f('0xd7')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x1d7')});db[_0x8d9f('0xd7')][_0x8d9f('0x156')](db['User'],{'onDelete':_0x8d9f('0x11b'),'foreignKey':'ToId'});db[_0x8d9f('0xdb')][_0x8d9f('0x120')](db[_0x8d9f('0xd9')],{'foreignKey':_0x8d9f('0x1d8'),'onDelete':'cascade'});db[_0x8d9f('0xdb')][_0x8d9f('0x120')](db[_0x8d9f('0xd8')],{'foreignKey':'SessionId','onDelete':_0x8d9f('0x11b')});db['SmsQueueReport'][_0x8d9f('0x156')](db['SmsAccount'],{});db[_0x8d9f('0xdd')][_0x8d9f('0x156')](db[_0x8d9f('0xfd')],{'as':_0x8d9f('0x16e'),'foreignKey':'ListId'});db[_0x8d9f('0xdd')][_0x8d9f('0x156')](db['CmContact'],{'as':'Contact','foreignKey':'ContactId'});db[_0x8d9f('0xdd')][_0x8d9f('0x156')](db['SmsInteraction'],{});db[_0x8d9f('0xdd')]['belongsTo'](db[_0x8d9f('0x5c')],{});db[_0x8d9f('0xdd')]['belongsTo'](db[_0x8d9f('0x14')],{});db['SmsQueueReport'][_0x8d9f('0x156')](db[_0x8d9f('0x5e')],{});db['JscriptyProject'][_0x8d9f('0x120')](db[_0x8d9f('0xdb')],{'foreignKey':_0x8d9f('0x1d9')});db[_0x8d9f('0xe1')]['hasMany'](db[_0x8d9f('0xd9')],{'foreignKey':_0x8d9f('0x1d9')});db['JscriptyProject'][_0x8d9f('0x120')](db[_0x8d9f('0xd8')],{'foreignKey':_0x8d9f('0x1d9')});db[_0x8d9f('0xed')][_0x8d9f('0x12d')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x15a'),'through':_0x8d9f('0x134')});db['Team'][_0x8d9f('0x12d')](db['VoiceQueue'],{'through':_0x8d9f('0x114'),'as':'VoiceQueues'});db[_0x8d9f('0xed')][_0x8d9f('0x12d')](db['MailQueue'],{'through':_0x8d9f('0x1da'),'as':_0x8d9f('0x13b')});db[_0x8d9f('0xed')][_0x8d9f('0x12d')](db['ChatQueue'],{'through':_0x8d9f('0x19b'),'as':_0x8d9f('0x13c')});db[_0x8d9f('0xed')]['belongsToMany'](db['FaxQueue'],{'through':'team_has_fax_queues','as':_0x8d9f('0x1db')});db[_0x8d9f('0xed')][_0x8d9f('0x12d')](db[_0x8d9f('0x5e')],{'through':'team_has_sms_queues','as':_0x8d9f('0x1dc')});db['Team'][_0x8d9f('0x12d')](db[_0x8d9f('0x13e')],{'through':_0x8d9f('0x194'),'as':_0x8d9f('0x1dd')});db[_0x8d9f('0xed')][_0x8d9f('0x12d')](db[_0x8d9f('0x13f')],{'through':_0x8d9f('0x1de'),'as':'WhatsappQueues'});db[_0x8d9f('0xed')][_0x8d9f('0x12d')](db['VoicePrefix'],{'through':_0x8d9f('0x1df'),'as':_0x8d9f('0x139')});db[_0x8d9f('0xf0')][_0x8d9f('0x120')](db[_0x8d9f('0x77')],{'as':_0x8d9f('0x1a0'),'foreignKey':_0x8d9f('0x1a6')});db[_0x8d9f('0xf0')]['hasMany'](db[_0x8d9f('0x7b')],{'as':_0x8d9f('0x122'),'foreignKey':_0x8d9f('0x1a6')});db[_0x8d9f('0xf0')][_0x8d9f('0x120')](db[_0x8d9f('0x123')],{'as':_0x8d9f('0x154'),'foreignKey':_0x8d9f('0x1a6')});db['Campaign'][_0x8d9f('0x120')](db['CmHopperBlack'],{'as':_0x8d9f('0x1e0'),'foreignKey':'CampaignId'});db[_0x8d9f('0xf0')][_0x8d9f('0x156')](db[_0x8d9f('0x2e')],{'as':_0x8d9f('0x2e'),'foreignKey':_0x8d9f('0x155')});db['Campaign'][_0x8d9f('0x156')](db[_0x8d9f('0x2e')],{'as':_0x8d9f('0x1e1'),'foreignKey':'TrunkBackupId'});db[_0x8d9f('0xf0')]['belongsTo'](db[_0x8d9f('0x8a')],{'as':'Interval','foreignKey':_0x8d9f('0x157')});db[_0x8d9f('0xf0')][_0x8d9f('0x156')](db[_0x8d9f('0xe7')],{'as':_0x8d9f('0xe7'),'foreignKey':'SquareProjectId'});db['Campaign'][_0x8d9f('0x12d')](db[_0x8d9f('0xfd')],{'as':'Lists','through':_0x8d9f('0x1e2')});db['Campaign'][_0x8d9f('0x12d')](db[_0x8d9f('0xfd')],{'as':_0x8d9f('0x15c'),'through':_0x8d9f('0x1e3')});db[_0x8d9f('0x177')]['belongsTo'](db[_0x8d9f('0x6d')],{'as':_0x8d9f('0x6d'),'foreignKey':_0x8d9f('0x17c')});db[_0x8d9f('0xf6')][_0x8d9f('0x156')](db[_0x8d9f('0x16d')],{});db[_0x8d9f('0xf6')][_0x8d9f('0x156')](db[_0x8d9f('0x43')],{});db[_0x8d9f('0xf6')][_0x8d9f('0x156')](db[_0x8d9f('0x40')],{'foreignKey':_0x8d9f('0x1e4'),'as':'FromAccount'});db[_0x8d9f('0xf6')]['belongsTo'](db[_0x8d9f('0x14')],{'foreignKey':_0x8d9f('0x1e5'),'as':_0x8d9f('0x1e6')});db['MailTransferReport'][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'foreignKey':_0x8d9f('0x1e7'),'as':_0x8d9f('0x1e8')});db[_0x8d9f('0xf6')][_0x8d9f('0x156')](db['MailQueue'],{'foreignKey':_0x8d9f('0x1e9'),'as':_0x8d9f('0x1ea')});db['MailTransferReport'][_0x8d9f('0x156')](db['MailAccount'],{'foreignKey':'ToMailAccountId','as':_0x8d9f('0x1eb')});db[_0x8d9f('0xf8')][_0x8d9f('0x156')](db[_0x8d9f('0x6b')],{});db['ChatTransferReport'][_0x8d9f('0x156')](db[_0x8d9f('0x126')],{});db[_0x8d9f('0xf8')][_0x8d9f('0x156')](db[_0x8d9f('0x17a')],{'foreignKey':_0x8d9f('0x1ec'),'as':_0x8d9f('0x1ed')});db[_0x8d9f('0xf8')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'foreignKey':_0x8d9f('0x1e5'),'as':_0x8d9f('0x1e6')});db['ChatTransferReport']['belongsTo'](db['User'],{'foreignKey':_0x8d9f('0x1e7'),'as':_0x8d9f('0x1e8')});db[_0x8d9f('0xf8')][_0x8d9f('0x156')](db[_0x8d9f('0x6f')],{'foreignKey':_0x8d9f('0x1ee'),'as':_0x8d9f('0x1ea')});db[_0x8d9f('0xf8')][_0x8d9f('0x156')](db[_0x8d9f('0x17a')],{'foreignKey':'ToChatWebsiteId','as':_0x8d9f('0x1eb')});db[_0x8d9f('0xf9')]['belongsTo'](db['FaxMessage'],{});db[_0x8d9f('0xf9')][_0x8d9f('0x156')](db[_0x8d9f('0x51')],{});db[_0x8d9f('0xf9')]['belongsTo'](db[_0x8d9f('0x4d')],{'foreignKey':'FromFaxAccountId','as':'FromAccount'});db['FaxTransferReport']['belongsTo'](db[_0x8d9f('0x14')],{'foreignKey':_0x8d9f('0x1e5'),'as':_0x8d9f('0x1e6')});db[_0x8d9f('0xf9')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'foreignKey':_0x8d9f('0x1e7'),'as':_0x8d9f('0x1e8')});db[_0x8d9f('0xf9')][_0x8d9f('0x156')](db[_0x8d9f('0x55')],{'foreignKey':_0x8d9f('0x1ef'),'as':_0x8d9f('0x1ea')});db['FaxTransferReport'][_0x8d9f('0x156')](db['FaxAccount'],{'foreignKey':'ToFaxAccountId','as':_0x8d9f('0x1eb')});db[_0x8d9f('0xfa')][_0x8d9f('0x156')](db['OpenchannelMessage'],{});db[_0x8d9f('0xfa')][_0x8d9f('0x156')](db['OpenchannelInteraction'],{});db[_0x8d9f('0xfa')][_0x8d9f('0x156')](db[_0x8d9f('0x60')],{'foreignKey':_0x8d9f('0x1f0'),'as':_0x8d9f('0x1ed')});db[_0x8d9f('0xfa')]['belongsTo'](db['User'],{'foreignKey':'FromUserId','as':_0x8d9f('0x1e6')});db[_0x8d9f('0xfa')]['belongsTo'](db[_0x8d9f('0x14')],{'foreignKey':_0x8d9f('0x1e7'),'as':_0x8d9f('0x1e8')});db[_0x8d9f('0xfa')][_0x8d9f('0x156')](db[_0x8d9f('0x13e')],{'foreignKey':_0x8d9f('0x1f1'),'as':_0x8d9f('0x1ea')});db['OpenchannelTransferReport'][_0x8d9f('0x156')](db[_0x8d9f('0x60')],{'foreignKey':'ToOpenchannelAccountId','as':'ToAccount'});db[_0x8d9f('0x1f2')][_0x8d9f('0x156')](db[_0x8d9f('0x5c')],{});db['SmsTransferReport'][_0x8d9f('0x156')](db['SmsInteraction'],{});db[_0x8d9f('0x1f2')]['belongsTo'](db[_0x8d9f('0x57')],{'foreignKey':_0x8d9f('0x1f3'),'as':_0x8d9f('0x1ed')});db['SmsTransferReport'][_0x8d9f('0x156')](db['User'],{'foreignKey':_0x8d9f('0x1e5'),'as':_0x8d9f('0x1e6')});db[_0x8d9f('0x1f2')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'foreignKey':_0x8d9f('0x1e7'),'as':_0x8d9f('0x1e8')});db[_0x8d9f('0x1f2')]['belongsTo'](db[_0x8d9f('0x5e')],{'foreignKey':'ToSmsQueueId','as':'ToQueue'});db[_0x8d9f('0x1f2')][_0x8d9f('0x156')](db[_0x8d9f('0x57')],{'foreignKey':'ToSmsAccountId','as':_0x8d9f('0x1eb')});db[_0x8d9f('0xfd')]['hasMany'](db[_0x8d9f('0x86')],{'as':_0x8d9f('0x188'),'foreignKey':_0x8d9f('0x16f'),'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0xfd')][_0x8d9f('0x120')](db[_0x8d9f('0x7f')],{'as':'CustomFields','foreignKey':'ListId'});db[_0x8d9f('0xfd')][_0x8d9f('0x120')](db[_0x8d9f('0x130')],{'as':_0x8d9f('0x131'),'onDelete':_0x8d9f('0x11b'),'foreignKey':_0x8d9f('0x16f')});db[_0x8d9f('0xfd')][_0x8d9f('0x120')](db[_0x8d9f('0x7b')],{'as':_0x8d9f('0x122'),'foreignKey':_0x8d9f('0x16f')});db[_0x8d9f('0xfd')][_0x8d9f('0x120')](db[_0x8d9f('0x123')],{'as':_0x8d9f('0x124'),'foreignKey':_0x8d9f('0x16f')});db[_0x8d9f('0xfd')][_0x8d9f('0x120')](db[_0x8d9f('0x7e')],{'as':'ReportAgentPreview','foreignKey':_0x8d9f('0x16f')});db['CmList']['belongsToMany'](db[_0x8d9f('0x1e')],{'as':_0x8d9f('0x1f4'),'through':_0x8d9f('0x1f5')});db[_0x8d9f('0xfd')][_0x8d9f('0x12d')](db['User'],{'as':_0x8d9f('0x15a'),'through':_0x8d9f('0x133')});db[_0x8d9f('0xff')][_0x8d9f('0x120')](db[_0x8d9f('0x14b')],{'as':'Extensions','onDelete':'cascade'});db[_0x8d9f('0xff')][_0x8d9f('0x12d')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x15a'),'through':_0x8d9f('0x13a')});db[_0x8d9f('0xff')][_0x8d9f('0x12d')](db['Team'],{'through':'TeamVoicePrefix','as':'Teams'});db[_0x8d9f('0x12c')][_0x8d9f('0x120')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x176'),'foreignKey':_0x8d9f('0x1f6')});db['UserProfile'][_0x8d9f('0x120')](db['UserProfileSection'],{'as':'UserProfileSections','foreignKey':_0x8d9f('0x1f6'),'onDelete':'cascade'});db[_0x8d9f('0x101')]['hasMany'](db[_0x8d9f('0x103')],{'as':_0x8d9f('0x1f7'),'foreignKey':_0x8d9f('0x1f8'),'onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x107')][_0x8d9f('0x120')](db['Disposition'],{'as':_0x8d9f('0x188'),'foreignKey':_0x8d9f('0x1f9'),'onDelete':'cascade'});db[_0x8d9f('0x107')]['hasMany'](db[_0x8d9f('0x84')],{'as':_0x8d9f('0x16c'),'foreignKey':_0x8d9f('0x1f9')});db[_0x8d9f('0x107')][_0x8d9f('0x120')](db[_0x8d9f('0x10b')],{'as':_0x8d9f('0x15f'),'foreignKey':_0x8d9f('0x1f9')});db['WhatsappAccount'][_0x8d9f('0x120')](db[_0x8d9f('0x10a')],{'as':_0x8d9f('0x180')});db['WhatsappAccount'][_0x8d9f('0x120')](db['WhatsappApplication'],{'as':_0x8d9f('0x14e'),'foreignKey':'WhatsappAccountId','onDelete':_0x8d9f('0x11b')});db[_0x8d9f('0x107')][_0x8d9f('0x156')](db['CmList'],{'as':_0x8d9f('0x16e'),'foreignKey':_0x8d9f('0x16f')});db['WhatsappAccount'][_0x8d9f('0x156')](db['Pause'],{'as':_0x8d9f('0x158'),'foreignKey':_0x8d9f('0x159')});db[_0x8d9f('0x107')][_0x8d9f('0x12d')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x15a'),'through':_0x8d9f('0x1fa')});db['WhatsappApplication'][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'onDelete':'restrict'});db[_0x8d9f('0x108')][_0x8d9f('0x156')](db[_0x8d9f('0x13f')],{'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x108')]['belongsTo'](db[_0x8d9f('0x107')],{'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x108')][_0x8d9f('0x156')](db[_0x8d9f('0x8a')],{'onDelete':_0x8d9f('0x169'),'foreignKey':_0x8d9f('0x157')});db['WhatsappApplication']['belongsTo'](db[_0x8d9f('0x92')],{'onDelete':_0x8d9f('0x169'),'foreignKey':_0x8d9f('0x17d')});db[_0x8d9f('0x10a')][_0x8d9f('0x120')](db[_0x8d9f('0x10b')],{'as':'Messages','onDelete':_0x8d9f('0x11b'),'foreignKey':'WhatsappInteractionId'});db[_0x8d9f('0x10a')]['belongsTo'](db[_0x8d9f('0x107')],{'as':'Account','foreignKey':_0x8d9f('0x1f9')});db[_0x8d9f('0x10a')]['belongsTo'](db[_0x8d9f('0x130')],{'as':_0x8d9f('0x165'),'foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x10a')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x173'),'foreignKey':_0x8d9f('0x11c')});db['WhatsappInteraction']['belongsToMany'](db[_0x8d9f('0x92')],{'through':_0x8d9f('0x1b7'),'as':_0x8d9f('0x174')});db['WhatsappInteraction']['belongsToMany'](db[_0x8d9f('0x92')],{'through':_0x8d9f('0x1b7'),'as':_0x8d9f('0x175')});db[_0x8d9f('0x10a')][_0x8d9f('0x12d')](db['User'],{'as':_0x8d9f('0x176'),'through':_0x8d9f('0x138'),'foreignKey':_0x8d9f('0x1fb')});db[_0x8d9f('0x10b')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x14')});db[_0x8d9f('0x10b')][_0x8d9f('0x156')](db['CmContact'],{'onDelete':'cascade','as':_0x8d9f('0x165')});db['WhatsappMessage']['belongsTo'](db[_0x8d9f('0x10a')],{'onDelete':_0x8d9f('0x11b'),'as':_0x8d9f('0x179'),'foreignKey':'WhatsappInteractionId'});db[_0x8d9f('0x10b')][_0x8d9f('0x156')](db[_0x8d9f('0x107')],{'as':_0x8d9f('0x172'),'foreignKey':_0x8d9f('0x1f9')});db[_0x8d9f('0x10d')]['belongsTo'](db['WhatsappAccount'],{});db[_0x8d9f('0x10d')][_0x8d9f('0x156')](db[_0x8d9f('0xfd')],{'as':'List','foreignKey':_0x8d9f('0x16f')});db[_0x8d9f('0x10d')][_0x8d9f('0x156')](db[_0x8d9f('0x130')],{'as':_0x8d9f('0x165'),'foreignKey':_0x8d9f('0x166')});db[_0x8d9f('0x10d')][_0x8d9f('0x156')](db[_0x8d9f('0x10a')],{});db[_0x8d9f('0x10d')][_0x8d9f('0x156')](db[_0x8d9f('0x13f')],{});db[_0x8d9f('0x10d')][_0x8d9f('0x156')](db[_0x8d9f('0x10b')],{});db['WhatsappQueueReport'][_0x8d9f('0x156')](db['User'],{});db[_0x8d9f('0x10f')]['belongsTo'](db[_0x8d9f('0x10b')],{});db['WhatsappTransferReport'][_0x8d9f('0x156')](db[_0x8d9f('0x10a')],{});db['WhatsappTransferReport'][_0x8d9f('0x156')](db['WhatsappAccount'],{'foreignKey':_0x8d9f('0x1fc'),'as':_0x8d9f('0x1ed')});db[_0x8d9f('0x10f')]['belongsTo'](db[_0x8d9f('0x107')],{'foreignKey':_0x8d9f('0x1fd'),'as':_0x8d9f('0x1eb')});db[_0x8d9f('0x10f')][_0x8d9f('0x156')](db[_0x8d9f('0x13f')],{'foreignKey':_0x8d9f('0x1fe'),'as':_0x8d9f('0x1ea')});db[_0x8d9f('0x10f')]['belongsTo'](db[_0x8d9f('0x14')],{'foreignKey':_0x8d9f('0x1e5'),'as':_0x8d9f('0x1e6')});db[_0x8d9f('0x10f')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'foreignKey':_0x8d9f('0x1e7'),'as':_0x8d9f('0x1e8')});db[_0x8d9f('0x13f')][_0x8d9f('0x12d')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x15a'),'through':_0x8d9f('0x3b'),'foreignKey':_0x8d9f('0x1ff')});db[_0x8d9f('0x13f')][_0x8d9f('0x12d')](db[_0x8d9f('0xed')],{'through':_0x8d9f('0x1de'),'as':_0x8d9f('0x15b')});db[_0x8d9f('0x200')][_0x8d9f('0x156')](db[_0x8d9f('0x14')],{'as':_0x8d9f('0x201'),'foreignKey':_0x8d9f('0x11c'),'onDelete':_0x8d9f('0x11b'),'hooks':!![]});db[_0x8d9f('0x112')]['hasOne'](db[_0x8d9f('0xcd')],{'as':_0x8d9f('0xcd'),'onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x112')]['hasOne'](db[_0x8d9f('0x3d')],{'as':'Imap','onDelete':_0x8d9f('0x169')});db[_0x8d9f('0x112')][_0x8d9f('0x16a')](db['MailServerOut'],{'as':_0x8d9f('0x16b'),'onDelete':_0x8d9f('0x169')});module[_0x8d9f('0x202')]={'db':db,'dbH':dbH};
\ No newline at end of file