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