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