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