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