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