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