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