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