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