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