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