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