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