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