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