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