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