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