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