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