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