f170084b83a14cf000834b9c35d101370039702c
[motion2.git] / server / mysqldb / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x503a=['CmCustomField','../api/cmCustomField/cmCustomField.model','../api/action/action.model','Automation','../api/automation/automation.model','CannedAnswer','../api/cannedAnswer/cannedAnswer.model','Disposition','../api/disposition/disposition.model','Condition','../api/condition/condition.model','Interval','../api/interval/interval.model','../api/pause/pause.model','Cdr','../api/cdr/cdr.model','VoiceQueuesLog','../api/voiceQueuesLog/voiceQueuesLog.model','../api/schedule/schedule.model','Sound','../api/sound/sound.model','Tag','Template','../api/template/template.model','Trigger','../api/trigger/trigger.model','Variable','../api/variable/variable.model','../api/integration/integration.model','IntegrationReport','AnalyticCustomReport','../api/analyticCustomReport/analyticCustomReport.model','AnalyticDefaultReport','../api/analyticDefaultReport/analyticDefaultReport.model','AnalyticExtractedReport','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','SugarcrmAccount','../api/intSugarcrmAccount/intSugarcrmAccount.model','../api/intSugarcrmConfiguration/intSugarcrmConfiguration.model','SugarcrmField','../api/intSugarcrmField/intSugarcrmField.model','DeskAccount','../api/intDeskAccount/intDeskAccount.model','../api/intDeskConfiguration/intDeskConfiguration.model','../api/intDeskField/intDeskField.model','ZohoAccount','../api/intZohoAccount/intZohoAccount.model','ZohoConfiguration','../api/intZohoConfiguration/intZohoConfiguration.model','../api/intZendeskAccount/intZendeskAccount.model','ZendeskConfiguration','../api/intZendeskConfiguration/intZendeskConfiguration.model','ZendeskField','../api/intFreshdeskAccount/intFreshdeskAccount.model','FreshdeskConfiguration','../api/intFreshdeskConfiguration/intFreshdeskConfiguration.model','FreshdeskField','VtigerAccount','../api/intVtigerAccount/intVtigerAccount.model','VtigerConfiguration','VtigerField','../api/intVtigerField/intVtigerField.model','ServicenowAccount','../api/intServicenowAccount/intServicenowAccount.model','../api/intServicenowConfiguration/intServicenowConfiguration.model','../api/intServicenowField/intServicenowField.model','Dynamics365Account','Dynamics365Configuration','../api/intDynamics365Configuration/intDynamics365Configuration.model','Dynamics365Field','../api/intDynamics365Field/intDynamics365Field.model','Integration','Network','../api/network/network.model','ChatQueueReport','../api/chatQueueReport/chatQueueReport.model','ChatInternalMessage','JscriptyAnswerReport','../api/jscriptyAnswerReport/jscriptyAnswerReport.model','JscriptyQuestionReport','../api/jscriptySessionReport/jscriptySessionReport.model','SmsQueueReport','SquareReport','../api/squareReport/squareReport.model','SquareDetailsReport','../api/jscriptyProject/jscriptyProject.model','Setting','SquareOdbc','../api/squareOdbc/squareOdbc.model','SquareProject','SquareRecording','SquareMessage','../api/squareMessage/squareMessage.model','Team','../api/team/team.model','License','Campaign','../api/campaign/campaign.model','Migration','../api/migration/migration.model','../api/attachment/attachment.model','MailTransferReport','../api/mailTransferReport/mailTransferReport.model','ChatTransferReport','../api/chatTransferReport/chatTransferReport.model','FaxTransferReport','../api/faxTransferReport/faxTransferReport.model','OpenchannelTransferReport','../api/openchannelTransferReport/openchannelTransferReport.model','SmsTransferReport','../api/cmList/cmList.model','VoicePrefix','UserProfile','../api/userProfile/userProfile.model','../api/userProfileSection/userProfileSection.model','UserProfileResource','../api/userProfileResource/userProfileResource.model','../api/crmNation/crmNation.model','CrmWorkflow','CrmWorkflowStep','../api/crmWorkflowstep/crmWorkflowstep.model','CrmTask','CrmActionsList','../api/crmActionsList/crmActionsList.model','../api/saTypeProduct/saTypeProduct.model','SAUnitMeasure','../api/saUnitMeasure/saUnitMeasure.model','SAInvoiceLaw','../api/saInvoiceLaw/saInvoiceLaw.model','SAProduct','../api/saProduct/saProduct.model','SASalesCondition','SAPriceList','../api/saPriceList/saPriceList.model','../api/saProductPricesList/saProductPricesList.model','SADossier','../api/saDossier/saDossier.model','../api/saRequest/saRequest.model','../api/saQuotation/saQuotation.model','SAProductQuotation','SAOrder','../api/saOrder/saOrder.model','../api/saProforma/saProforma.model','SAInvoice','../api/saInvoice/saInvoice.model','SAAsset','../api/saAsset/saAsset.model','SAInvoiceDetail','../api/saInvoiceDetail/saInvoiceDetail.model','SAProformaDetail','../api/saProformaDetail/saProformaDetail.model','SAPayment','SAPaymentMethod','../api/saPaymentMethod/saPaymentMethod.model','SACreditNote','SACreditNoteDetail','../api/saCreditNoteDetail/saCreditNoteDetail.model','SAInvoiceNumber','SACreditNoteNumber','SACompanyType','../api/saCompanyType/saCompanyType.model','SACompanyRelationship','../api/saCompanyRelationship/saCompanyRelationship.model','hasOne','cascade','hasMany','Recordings','User','UserVoiceQueueRt','VoiceQueuesRt','Extensions','HopperFinals','UserId','CmHopperHistory','HopperHistory','OpenchannelInteraction','OpenchannelInteractions','ChatInteractions','SmsInteraction','FaxInteraction','belongsTo','userProfileId','Groups','chat_group_has_users','belongsToMany','Contacts','Lists','cm_user_has_lists','user_has_teams','MailInteractions','user_has_mail_interactions','user_has_chat_interactions','FaxInteractions','user_has_sms_interactions','user_has_openchannel_interactions','VoiceQueues','MailQueues','UserMailQueue','FaxQueue','OpenchannelQueues','CmList','VoicePrefixes','user_has_voice_prefixes','ChatWebsites','user_has_chat_websites','FaxAccount','FaxAccounts','user_has_fax_accounts','MailAccounts','user_has_openchannel_accounts','SmsAccounts','user_has_sms_accounts','SpiedAgents','ChanSpyId','Applications','Sounds','moh_has_sounds','Members','CmHopper','VoiceQueueId','HopperHistories','VoiceQueue','HopperBlacks','JscriptySessionReport','JscriptySessions','TrunkId','TrunkBackupId','IntervalId','Pause','mandatoryDispositionPause','mandatoryDispositionPauseId','voice_queues_has_cm_lists','Agents','team_has_voice_queues','BlackLists','voice_queues_has_cm_blacklists','mailboxuser','mailbox','uniqueid','Contact','ContactId','MailAccountId','MailServerOut','Imap','Smtp','Dispositions','Answers','Interactions','List','ListId','user_has_mail_accounts','Teams','Owner','mail_interaction_has_tags','Tags','ThroughTags','Users','Attachment','Attachments','Account','restrict','TagId','Items','FaxAccountId','Exntensions','Messages','FaxInteractionId','fax_interaction_has_tags','user_has_fax_interactions','AttachmentId','team_has_fax_queues','SmsAccountId','SmsInteractionId','sms_interaction_has_tags','Interaction','SmsQueueId','team_has_sms_queues','OpenchannelAccountId','OpenchannelApplication','OpenchannelQueueId','OpenchannelInteractionId','openchannel_interaction_has_tags','team_has_openchannel_queues','ChatWebsiteId','ChatApplication','ChatMessage','ChatQueue','Queue','ChatQueueId','Website','chat_interaction_has_tags','ChatInteractionId','ChatGroupId','RelatedCompany','PriceLists','CompanyId','PaymentMethod','saPaymentMethod','SmsInteractions','Company','cm_user_has_contacts','cm_contact_has_tags','Agent','CampaignId','All','OneAll','Any','OneAny','AutomationAnyId','AutomationId','Intervals','MailApplications','FaxApplications','SmsApplications','Schedule','DefaultReportId','CustomReportId','AllCondition','AnyCondition','TriggerAnyId','Action','Actions','Fields','MetricId','Configurations','Subjects','SubjectId','Descriptions','DescriptionId','FieldId','AccountId','Subject','VariableId','SugarcrmConfiguration','Field','DeskConfiguration','DeskField','int_desk_configuration_has_tags','Description','ZohoField','ZendeskAccount','FreshdeskAccount','int_vtiger_configuration_has_tags','ServicenowConfiguration','ServicenowField','FromId','ToId','SessionId','JscriptyProject','ProjectId','user_has_square_projects','team_has_mail_queues','team_has_chat_queues','ChatQueues','FaxQueues','SmsQueues','Hoppers','SquareProjectId','campaigns_has_cm_lists','FromMailAccountId','FromAccount','FromUserId','FromAgent','ToUserId','ToMailQueueId','ToMailAccountId','ToAccount','FromChatWebsiteId','ToAgent','ToChatQueueId','ToQueue','ToChatWebsiteId','FromFaxAccountId','ToFaxAccountId','ToOpenchannelQueueId','ToOpenchannelAccountId','FromSmsAccountId','ToSmsQueueId','Queues','UserProfileSections','UserProfileSection','Resources','sectionId','WorkflowStepId','CrmWorkflowNextStep','crm_workflow_steps_has_crm_workflow_steps','TaskId','SATypeProduct','ProductId','SaleCondition','UnitMeasure','TypeProduct','TypeProductId','TypeSalesConditionId','SAProductPricesList','PriceListId','ProductPriceList','ProductPriceListId','Product','SARequest','Dossiers','DossierId','SAQuotation','SAProforma','Workflow','Requests','RequestId','Dossier','Quotations','QuotationId','Request','ProductPricesList','Quotation','ProformaId','InvoiceId','Orders','Proforma','Order','Details','Payments','OrderId','Invoice','CreditNote','CreditNoteId','saCompanyRelationship','exports','../config/environment','sequelize','jstz','determine','motion2','xcall','xC@LL1234','127.0.0.1','utf8mb4','name','utf8_general_ci','sequelizeHistory','defaultsDeep','database','username','password','options','import','../api/user/user.model','VoiceChanSpy','../api/voiceChanSpy/voiceChanSpy.model','VoiceContext','VoiceExtension','../api/voiceExtension/voiceExtension.model','VoiceMusicOnHold','VoiceRecording','../api/voiceRecording/voiceRecording.model','ScreenRecording','VoiceMail','VoiceMailMessage','../api/voiceMailMessage/voiceMailMessage.model','VoiceCallReport','../api/voiceCallReport/voiceCallReport.model','VoiceDialReport','../api/voiceDialReport/voiceDialReport.model','VoiceAgentReport','VoiceQueueReport','../api/voiceQueueReport/voiceQueueReport.model','MemberReport','Trunk','../api/trunk/trunk.model','VoiceTransferReport','../api/voiceTransferReport/voiceTransferReport.model','UserVoiceQueue','../api/userVoiceQueue/userVoiceQueue.model','UserChatQueue','../api/userChatQueue/userChatQueue.model','../api/userMailQueue/userMailQueue.model','UserFaxQueue','UserSmsQueue','UserOpenchannelQueue','../api/userOpenchannelQueue/userOpenchannelQueue.model','MailServerIn','../api/mailServerOut/mailServerOut.model','MailAccount','MailQueue','../api/mailQueue/mailQueue.model','MailSubstatus','../api/mailSubstatus/mailSubstatus.model','MailInteraction','../api/mailInteraction/mailInteraction.model','MailMessage','../api/mailMessage/mailMessage.model','MailApplication','../api/mailApplication/mailApplication.model','MailQueueReport','../api/mailQueueReport/mailQueueReport.model','Dashboard','../api/dashboard/dashboard.model','DashboardItem','../api/dashboardItem/dashboardItem.model','../api/faxAccount/faxAccount.model','FaxApplication','../api/faxApplication/faxApplication.model','FaxMessage','../api/faxQueue/faxQueue.model','FaxQueueReport','../api/faxQueueReport/faxQueueReport.model','SmsAccount','../api/smsAccount/smsAccount.model','SmsApplication','../api/smsApplication/smsApplication.model','SmsMessage','../api/smsMessage/smsMessage.model','SmsQueue','../api/smsQueue/smsQueue.model','OpenchannelAccount','../api/openchannelApplication/openchannelApplication.model','OpenchannelMessage','../api/openchannelMessage/openchannelMessage.model','OpenchannelQueue','../api/openchannelQueue/openchannelQueue.model','ChatWebsite','../api/chatWebsite/chatWebsite.model','OpenchannelQueueReport','../api/openchannelQueueReport/openchannelQueueReport.model','ChatInteraction','../api/chatInteraction/chatInteraction.model','ChatOfflineMessage','../api/chatOfflineMessage/chatOfflineMessage.model','../api/chatQueue/chatQueue.model','ChatGroup','ChatProactiveAction','../api/chatProactiveAction/chatProactiveAction.model','CmCompany','CmContact','../api/cmContact/cmContact.model','../api/cmHopper/cmHopper.model','CmHopperBlack','../api/cmHopperBlack/cmHopperBlack.model','CmHopperFinal','../api/cmHopperFinal/cmHopperFinal.model','../api/cmHopperHistory/cmHopperHistory.model','ReportAgentPreview'];(function(_0x2a2ac3,_0x584279){var _0x5c06d3=function(_0x971f96){while(--_0x971f96){_0x2a2ac3['push'](_0x2a2ac3['shift']());}};_0x5c06d3(++_0x584279);}(_0x503a,0x1b4));var _0xa503=function(_0x51ec61,_0xf9d1e3){_0x51ec61=_0x51ec61-0x0;var _0x223200=_0x503a[_0x51ec61];return _0x223200;};'use strict';var path=require('path');var config=require(_0xa503('0x0'));var Sequelize=require(_0xa503('0x1'));var _=require('lodash');var jstz=require(_0xa503('0x2'));var timezone=jstz[_0xa503('0x3')]();config[_0xa503('0x1')]=_['defaultsDeep'](config[_0xa503('0x1')],{'database':_0xa503('0x4'),'username':_0xa503('0x5'),'password':_0xa503('0x6'),'options':{'host':_0xa503('0x7'),'port':0xcea,'dialect':'mysql','dialectOptions':{'charset':_0xa503('0x8')},'logging':![],'timezone':timezone[_0xa503('0x9')](),'define':{'charset':'utf8','collate':_0xa503('0xa')}}});config[_0xa503('0xb')]=_[_0xa503('0xc')](config[_0xa503('0xb')],{'database':'motion2','username':_0xa503('0x5'),'password':_0xa503('0x6'),'options':{'host':_0xa503('0x7'),'port':0xcea,'dialect':'mysql','dialectOptions':{'charset':_0xa503('0x8')},'logging':![],'timezone':timezone['name'](),'define':{'charset':'utf8','collate':_0xa503('0xa')}}});var db={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0xa503('0x1')][_0xa503('0xd')],config[_0xa503('0x1')][_0xa503('0xe')],config[_0xa503('0x1')][_0xa503('0xf')],config[_0xa503('0x1')][_0xa503('0x10')])};var dbH={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0xa503('0xb')]['database'],config[_0xa503('0xb')][_0xa503('0xe')],config[_0xa503('0xb')][_0xa503('0xf')],config['sequelizeHistory'][_0xa503('0x10')])};db['User']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x12'));db[_0xa503('0x13')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x14'));db[_0xa503('0x15')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/voiceContext/voiceContext.model');db[_0xa503('0x16')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x17'));db[_0xa503('0x18')]=db['sequelize'][_0xa503('0x11')]('../api/voiceMusicOnHold/voiceMusicOnHold.model');db['VoiceQueue']=db[_0xa503('0x1')][_0xa503('0x11')]('../api/voiceQueue/voiceQueue.model');db[_0xa503('0x19')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x1a'));db[_0xa503('0x1b')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/screenRecording/screenRecording.model');db[_0xa503('0x1c')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/voiceMail/voiceMail.model');db[_0xa503('0x1d')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x1e'));db[_0xa503('0x1f')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x20'));db[_0xa503('0x21')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x22'));db[_0xa503('0x23')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/voiceAgentReport/voiceAgentReport.model');db[_0xa503('0x24')]=db[_0xa503('0x1')]['import'](_0xa503('0x25'));db[_0xa503('0x26')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/memberReport/memberReport.model');db[_0xa503('0x27')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x28'));db[_0xa503('0x29')]=db['sequelize'][_0xa503('0x11')](_0xa503('0x2a'));db['UserVoiceQueueRt']=db[_0xa503('0x1')][_0xa503('0x11')]('../api/userVoiceQueueRt/userVoiceQueueRt.model');db[_0xa503('0x2b')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x2c'));db[_0xa503('0x2d')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x2e'));db['UserMailQueue']=db[_0xa503('0x1')]['import'](_0xa503('0x2f'));db[_0xa503('0x30')]=db[_0xa503('0x1')]['import']('../api/userFaxQueue/userFaxQueue.model');db[_0xa503('0x31')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/userSmsQueue/userSmsQueue.model');db[_0xa503('0x32')]=db['sequelize'][_0xa503('0x11')](_0xa503('0x33'));db[_0xa503('0x34')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/mailServerIn/mailServerIn.model');db['MailServerOut']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x35'));db[_0xa503('0x36')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/mailAccount/mailAccount.model');db[_0xa503('0x37')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x38'));db[_0xa503('0x39')]=db['sequelize']['import'](_0xa503('0x3a'));db[_0xa503('0x3b')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x3c'));db[_0xa503('0x3d')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x3e'));db[_0xa503('0x3f')]=db[_0xa503('0x1')]['import'](_0xa503('0x40'));db[_0xa503('0x41')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x42'));db[_0xa503('0x43')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x44'));db[_0xa503('0x45')]=db[_0xa503('0x1')]['import'](_0xa503('0x46'));db['FaxAccount']=db['sequelize'][_0xa503('0x11')](_0xa503('0x47'));db[_0xa503('0x48')]=db['sequelize'][_0xa503('0x11')](_0xa503('0x49'));db['FaxInteraction']=db[_0xa503('0x1')][_0xa503('0x11')]('../api/faxInteraction/faxInteraction.model');db[_0xa503('0x4a')]=db[_0xa503('0x1')]['import']('../api/faxMessage/faxMessage.model');db['FaxQueue']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x4b'));db[_0xa503('0x4c')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x4d'));db[_0xa503('0x4e')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x4f'));db[_0xa503('0x50')]=db['sequelize'][_0xa503('0x11')](_0xa503('0x51'));db['SmsInteraction']=db[_0xa503('0x1')]['import']('../api/smsInteraction/smsInteraction.model');db[_0xa503('0x52')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x53'));db[_0xa503('0x54')]=db['sequelize'][_0xa503('0x11')](_0xa503('0x55'));db[_0xa503('0x56')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/openchannelAccount/openchannelAccount.model');db['OpenchannelApplication']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x57'));db['OpenchannelInteraction']=db[_0xa503('0x1')][_0xa503('0x11')]('../api/openchannelInteraction/openchannelInteraction.model');db[_0xa503('0x58')]=db[_0xa503('0x1')]['import'](_0xa503('0x59'));db[_0xa503('0x5a')]=db[_0xa503('0x1')]['import'](_0xa503('0x5b'));db[_0xa503('0x5c')]=db[_0xa503('0x1')]['import'](_0xa503('0x5d'));db[_0xa503('0x5e')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x5f'));db['ChatApplication']=db[_0xa503('0x1')]['import']('../api/chatApplication/chatApplication.model');db[_0xa503('0x60')]=db[_0xa503('0x1')]['import'](_0xa503('0x61'));db['ChatMessage']=db['sequelize'][_0xa503('0x11')]('../api/chatMessage/chatMessage.model');db[_0xa503('0x62')]=db[_0xa503('0x1')]['import'](_0xa503('0x63'));db['ChatQueue']=db['sequelize'][_0xa503('0x11')](_0xa503('0x64'));db[_0xa503('0x65')]=db['sequelize'][_0xa503('0x11')]('../api/chatGroup/chatGroup.model');db[_0xa503('0x66')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x67'));db[_0xa503('0x68')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/cmCompany/cmCompany.model');db[_0xa503('0x69')]=db['sequelize'][_0xa503('0x11')](_0xa503('0x6a'));db['CmHopper']=db[_0xa503('0x1')]['import'](_0xa503('0x6b'));db[_0xa503('0x6c')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x6d'));db[_0xa503('0x6e')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x6f'));db['CmHopperHistory']=db[_0xa503('0x1')]['import'](_0xa503('0x70'));db[_0xa503('0x71')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/reportAgentPreview/reportAgentPreview.model');db[_0xa503('0x72')]=db['sequelize']['import'](_0xa503('0x73'));db['Action']=db['sequelize'][_0xa503('0x11')](_0xa503('0x74'));db[_0xa503('0x75')]=db[_0xa503('0x1')]['import'](_0xa503('0x76'));db[_0xa503('0x77')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x78'));db[_0xa503('0x79')]=db[_0xa503('0x1')]['import'](_0xa503('0x7a'));db[_0xa503('0x7b')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x7c'));db[_0xa503('0x7d')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x7e'));db['Pause']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x7f'));db[_0xa503('0x80')]=db['sequelize']['import'](_0xa503('0x81'));db[_0xa503('0x82')]=db['sequelize'][_0xa503('0x11')](_0xa503('0x83'));db['Schedule']=db[_0xa503('0x1')]['import'](_0xa503('0x84'));db[_0xa503('0x85')]=db[_0xa503('0x1')]['import'](_0xa503('0x86'));db[_0xa503('0x87')]=db[_0xa503('0x1')]['import']('../api/tag/tag.model');db[_0xa503('0x88')]=db[_0xa503('0x1')]['import'](_0xa503('0x89'));db[_0xa503('0x8a')]=db[_0xa503('0x1')]['import'](_0xa503('0x8b'));db[_0xa503('0x8c')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x8d'));db['Integration']=db['sequelize']['import'](_0xa503('0x8e'));db[_0xa503('0x8f')]=db['sequelize'][_0xa503('0x11')]('../api/integrationReport/integrationReport.model');db[_0xa503('0x90')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x91'));db[_0xa503('0x92')]=db['sequelize']['import'](_0xa503('0x93'));db[_0xa503('0x94')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/analyticExtractedReport/analyticExtractedReport.model');db[_0xa503('0x95')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x96'));db[_0xa503('0x97')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x98'));db[_0xa503('0x99')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x9a'));db[_0xa503('0x9b')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x9c'));db[_0xa503('0x9d')]=db['sequelize']['import'](_0xa503('0x9e'));db[_0xa503('0x9f')]=db['sequelize'][_0xa503('0x11')]('../api/intSalesforceField/intSalesforceField.model');db[_0xa503('0xa0')]=db[_0xa503('0x1')]['import'](_0xa503('0xa1'));db['SugarcrmConfiguration']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xa2'));db[_0xa503('0xa3')]=db['sequelize'][_0xa503('0x11')](_0xa503('0xa4'));db[_0xa503('0xa5')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xa6'));db['DeskConfiguration']=db['sequelize'][_0xa503('0x11')](_0xa503('0xa7'));db['DeskField']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xa8'));db[_0xa503('0xa9')]=db['sequelize'][_0xa503('0x11')](_0xa503('0xaa'));db[_0xa503('0xab')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xac'));db['ZohoField']=db[_0xa503('0x1')][_0xa503('0x11')]('../api/intZohoField/intZohoField.model');db['ZendeskAccount']=db['sequelize']['import'](_0xa503('0xad'));db[_0xa503('0xae')]=db[_0xa503('0x1')]['import'](_0xa503('0xaf'));db[_0xa503('0xb0')]=db['sequelize'][_0xa503('0x11')]('../api/intZendeskField/intZendeskField.model');db['FreshdeskAccount']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xb1'));db[_0xa503('0xb2')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xb3'));db[_0xa503('0xb4')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/intFreshdeskField/intFreshdeskField.model');db[_0xa503('0xb5')]=db[_0xa503('0x1')]['import'](_0xa503('0xb6'));db[_0xa503('0xb7')]=db['sequelize'][_0xa503('0x11')]('../api/intVtigerConfiguration/intVtigerConfiguration.model');db[_0xa503('0xb8')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xb9'));db[_0xa503('0xba')]=db[_0xa503('0x1')]['import'](_0xa503('0xbb'));db['ServicenowConfiguration']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xbc'));db['ServicenowField']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xbd'));db[_0xa503('0xbe')]=db[_0xa503('0x1')]['import']('../api/intDynamics365Account/intDynamics365Account.model');db[_0xa503('0xbf')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xc0'));db[_0xa503('0xc1')]=db[_0xa503('0x1')]['import'](_0xa503('0xc2'));db[_0xa503('0xc3')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x8e'));db[_0xa503('0xc4')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xc5'));db[_0xa503('0xc6')]=db[_0xa503('0x1')]['import'](_0xa503('0xc7'));db[_0xa503('0xc8')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/chatInternalMessage/chatInternalMessage.model');db[_0xa503('0xc9')]=db[_0xa503('0x1')]['import'](_0xa503('0xca'));db[_0xa503('0xcb')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/jscriptyQuestionReport/jscriptyQuestionReport.model');db['JscriptySessionReport']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xcc'));db[_0xa503('0xcd')]=db['sequelize'][_0xa503('0x11')]('../api/smsQueueReport/smsQueueReport.model');db[_0xa503('0xce')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xcf'));db[_0xa503('0xd0')]=db['sequelize'][_0xa503('0x11')]('../api/squareReportDetail/squareReportDetail.model');db['JscriptyProject']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xd1'));db[_0xa503('0xd2')]=db['sequelize'][_0xa503('0x11')]('../api/setting/setting.model');db[_0xa503('0xd3')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xd4'));db[_0xa503('0xd5')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/squareProject/squareProject.model');db[_0xa503('0xd6')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/squareRecording/squareRecording.model');db[_0xa503('0xd7')]=db['sequelize'][_0xa503('0x11')](_0xa503('0xd8'));db[_0xa503('0xd9')]=db[_0xa503('0x1')]['import'](_0xa503('0xda'));db[_0xa503('0xdb')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/license/license.model');db[_0xa503('0xdc')]=db['sequelize'][_0xa503('0x11')](_0xa503('0xdd'));db[_0xa503('0xde')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xdf'));db['Attachment']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xe0'));db['Plugin']=db[_0xa503('0x1')]['import']('../api/plugin/plugin.model');db[_0xa503('0xe1')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xe2'));db[_0xa503('0xe3')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xe4'));db[_0xa503('0xe5')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xe6'));db[_0xa503('0xe7')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xe8'));db[_0xa503('0xe9')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/smsTransferReport/smsTransferReport.model');db['CmList']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xea'));db[_0xa503('0xeb')]=db[_0xa503('0x1')]['import']('../api/voicePrefix/voicePrefix.model');db[_0xa503('0xec')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xed'));db['UserProfileSection']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xee'));db[_0xa503('0xef')]=db[_0xa503('0x1')]['import'](_0xa503('0xf0'));db['CrmNation']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xf1'));db[_0xa503('0xf2')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/crmWorkflow/crmWorkflow.model');db[_0xa503('0xf3')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xf4'));db[_0xa503('0xf5')]=db['sequelize'][_0xa503('0x11')]('../api/crmTask/crmTask.model');db[_0xa503('0xf6')]=db['sequelize'][_0xa503('0x11')](_0xa503('0xf7'));db['SATypeProduct']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xf8'));db[_0xa503('0xf9')]=db[_0xa503('0x1')]['import'](_0xa503('0xfa'));db[_0xa503('0xfb')]=db['sequelize'][_0xa503('0x11')](_0xa503('0xfc'));db[_0xa503('0xfd')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0xfe'));db[_0xa503('0xff')]=db[_0xa503('0x1')]['import']('../api/saSalesCondition/saSalesCondition.model');db[_0xa503('0x100')]=db[_0xa503('0x1')]['import'](_0xa503('0x101'));db['SAProductPricesList']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x102'));db[_0xa503('0x103')]=db['sequelize'][_0xa503('0x11')](_0xa503('0x104'));db['SARequest']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x105'));db['SAQuotation']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x106'));db[_0xa503('0x107')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/saProductQuotation/saProductQuotation.model');db[_0xa503('0x108')]=db['sequelize'][_0xa503('0x11')](_0xa503('0x109'));db['SAProforma']=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x10a'));db[_0xa503('0x10b')]=db['sequelize'][_0xa503('0x11')](_0xa503('0x10c'));db[_0xa503('0x10d')]=db[_0xa503('0x1')]['import'](_0xa503('0x10e'));db[_0xa503('0x10f')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x110'));db[_0xa503('0x111')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x112'));db[_0xa503('0x113')]=db['sequelize'][_0xa503('0x11')]('../api/saPayment/saPayment.model');db[_0xa503('0x114')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x115'));db[_0xa503('0x116')]=db[_0xa503('0x1')]['import']('../api/saCreditNote/saCreditNote.model');db[_0xa503('0x117')]=db[_0xa503('0x1')]['import'](_0xa503('0x118'));db[_0xa503('0x119')]=db[_0xa503('0x1')]['import']('../api/saInvoiceNumber/saInvoiceNumber.model');db[_0xa503('0x11a')]=db[_0xa503('0x1')][_0xa503('0x11')]('../api/saCreditNoteNumber/saCreditNoteNumber.model');db[_0xa503('0x11b')]=db[_0xa503('0x1')][_0xa503('0x11')](_0xa503('0x11c'));db[_0xa503('0x11d')]=db[_0xa503('0x1')]['import'](_0xa503('0x11e'));db['User'][_0xa503('0x11f')](db[_0xa503('0x1c')],{'as':_0xa503('0x1c'),'onDelete':_0xa503('0x120'),'foreignKey':'UserId'});db['User'][_0xa503('0x121')](db[_0xa503('0x19')],{'as':_0xa503('0x122'),'foreignKey':'UserId'});db[_0xa503('0x123')][_0xa503('0x121')](db[_0xa503('0x124')],{'as':_0xa503('0x125'),'foreignKey':'UserId'});db[_0xa503('0x123')][_0xa503('0x121')](db[_0xa503('0x16')],{'as':_0xa503('0x126'),'onDelete':_0xa503('0x120'),'hooks':!![]});db[_0xa503('0x123')][_0xa503('0x121')](db[_0xa503('0x6e')],{'as':_0xa503('0x127'),'foreignKey':_0xa503('0x128')});db[_0xa503('0x123')][_0xa503('0x121')](db[_0xa503('0x129')],{'as':_0xa503('0x12a'),'foreignKey':_0xa503('0x128')});db[_0xa503('0x123')][_0xa503('0x121')](db[_0xa503('0x71')],{'as':'ReportAgentPreview','foreignKey':_0xa503('0x128')});db[_0xa503('0x123')][_0xa503('0x121')](db[_0xa503('0x12b')],{'as':_0xa503('0x12c'),'foreignKey':'UserId'});db[_0xa503('0x123')][_0xa503('0x121')](db[_0xa503('0x60')],{'as':_0xa503('0x12d'),'foreignKey':_0xa503('0x128')});db['User'][_0xa503('0x121')](db[_0xa503('0x12e')],{'as':'SmsInteractions','foreignKey':_0xa503('0x128')});db['User'][_0xa503('0x121')](db[_0xa503('0x12f')],{'as':'FaxInteractions','foreignKey':_0xa503('0x128')});db[_0xa503('0x123')][_0xa503('0x121')](db['MailInteraction'],{'as':'MailInteractions','foreignKey':'UserId'});db[_0xa503('0x123')][_0xa503('0x130')](db[_0xa503('0xec')],{'as':_0xa503('0xec'),'foreignKey':_0xa503('0x131')});db[_0xa503('0x123')]['belongsToMany'](db[_0xa503('0x65')],{'as':_0xa503('0x132'),'through':_0xa503('0x133')});db[_0xa503('0x123')][_0xa503('0x134')](db['CmContact'],{'as':_0xa503('0x135'),'through':'cm_user_has_contacts'});db['User'][_0xa503('0x134')](db['CmList'],{'as':_0xa503('0x136'),'through':_0xa503('0x137')});db[_0xa503('0x123')]['belongsToMany'](db[_0xa503('0xd9')],{'through':_0xa503('0x138')});db[_0xa503('0x123')][_0xa503('0x134')](db[_0xa503('0x3b')],{'as':_0xa503('0x139'),'through':_0xa503('0x13a')});db[_0xa503('0x123')][_0xa503('0x134')](db[_0xa503('0x60')],{'as':_0xa503('0x12d'),'through':_0xa503('0x13b')});db[_0xa503('0x123')]['belongsToMany'](db[_0xa503('0x12f')],{'as':_0xa503('0x13c'),'through':'user_has_fax_interactions'});db[_0xa503('0x123')][_0xa503('0x134')](db[_0xa503('0x12e')],{'as':'SmsInteractions','through':_0xa503('0x13d')});db[_0xa503('0x123')][_0xa503('0x134')](db[_0xa503('0x12b')],{'as':_0xa503('0x12c'),'through':_0xa503('0x13e')});db[_0xa503('0x123')][_0xa503('0x134')](db['VoiceQueue'],{'as':_0xa503('0x13f'),'through':_0xa503('0x2b'),'required':![]});db[_0xa503('0x123')][_0xa503('0x134')](db[_0xa503('0x37')],{'as':_0xa503('0x140'),'through':_0xa503('0x141'),'required':![]});db[_0xa503('0x123')][_0xa503('0x134')](db['ChatQueue'],{'as':'ChatQueues','through':_0xa503('0x2d'),'required':![],'hooks':!![]});db[_0xa503('0x123')][_0xa503('0x134')](db[_0xa503('0x142')],{'as':'FaxQueues','through':_0xa503('0x30'),'required':![]});db[_0xa503('0x123')]['belongsToMany'](db[_0xa503('0x54')],{'as':'SmsQueues','through':_0xa503('0x31'),'required':![]});db['User']['belongsToMany'](db[_0xa503('0x5a')],{'as':_0xa503('0x143'),'through':'UserOpenchannelQueue','required':![]});db['User'][_0xa503('0x134')](db[_0xa503('0x144')],{'through':_0xa503('0x137')});db[_0xa503('0x123')][_0xa503('0x134')](db[_0xa503('0xeb')],{'as':_0xa503('0x145'),'through':_0xa503('0x146'),'required':![]});db[_0xa503('0x123')][_0xa503('0x134')](db[_0xa503('0x5c')],{'as':_0xa503('0x147'),'through':_0xa503('0x148')});db[_0xa503('0x123')][_0xa503('0x134')](db[_0xa503('0x149')],{'as':_0xa503('0x14a'),'through':_0xa503('0x14b')});db['User'][_0xa503('0x134')](db['MailAccount'],{'as':_0xa503('0x14c'),'through':'user_has_mail_accounts'});db[_0xa503('0x123')]['belongsToMany'](db[_0xa503('0x56')],{'as':'OpenchannelAccounts','through':_0xa503('0x14d')});db[_0xa503('0x123')]['belongsToMany'](db['SmsAccount'],{'as':_0xa503('0x14e'),'through':_0xa503('0x14f')});db['User'][_0xa503('0x134')](db[_0xa503('0xd5')],{'as':'SquareProjects','through':'user_has_square_projects'});db[_0xa503('0x13')][_0xa503('0x121')](db['VoiceExtension'],{'as':_0xa503('0x150'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x151')});db[_0xa503('0x15')][_0xa503('0x121')](db['VoiceExtension'],{'onDelete':_0xa503('0x120')});db[_0xa503('0x16')][_0xa503('0x121')](db[_0xa503('0x16')],{'as':_0xa503('0x152'),'onDelete':_0xa503('0x120')});db[_0xa503('0x18')][_0xa503('0x134')](db[_0xa503('0x85')],{'as':_0xa503('0x153'),'through':_0xa503('0x154')});db['VoiceQueue'][_0xa503('0x121')](db[_0xa503('0x124')],{'as':_0xa503('0x155'),'foreignKey':'VoiceQueueId'});db['VoiceQueue'][_0xa503('0x121')](db[_0xa503('0x156')],{'as':'Hoppers','foreignKey':'VoiceQueueId'});db['VoiceQueue'][_0xa503('0x121')](db[_0xa503('0x6e')],{'as':'HopperFinals','foreignKey':_0xa503('0x157')});db['VoiceQueue'][_0xa503('0x121')](db['CmHopperHistory'],{'as':_0xa503('0x158'),'foreignKey':_0xa503('0x157')});db[_0xa503('0x159')][_0xa503('0x121')](db[_0xa503('0x71')],{'as':_0xa503('0x71'),'foreignKey':_0xa503('0x157')});db['VoiceQueue'][_0xa503('0x121')](db[_0xa503('0x6c')],{'as':_0xa503('0x15a'),'foreignKey':_0xa503('0x157')});db[_0xa503('0x159')][_0xa503('0x121')](db[_0xa503('0x15b')],{'as':_0xa503('0x15c'),'foreignKey':_0xa503('0x157')});db['VoiceQueue'][_0xa503('0x130')](db[_0xa503('0x27')],{'as':_0xa503('0x27'),'foreignKey':_0xa503('0x15d')});db[_0xa503('0x159')][_0xa503('0x130')](db[_0xa503('0x27')],{'as':'TrunkBackup','foreignKey':_0xa503('0x15e')});db[_0xa503('0x159')]['belongsTo'](db[_0xa503('0x7d')],{'as':_0xa503('0x7d'),'foreignKey':_0xa503('0x15f')});db[_0xa503('0x159')][_0xa503('0x130')](db[_0xa503('0x160')],{'as':_0xa503('0x161'),'foreignKey':_0xa503('0x162')});db[_0xa503('0x159')]['belongsToMany'](db[_0xa503('0x144')],{'as':_0xa503('0x136'),'through':_0xa503('0x163')});db[_0xa503('0x159')][_0xa503('0x134')](db[_0xa503('0x123')],{'as':_0xa503('0x164'),'through':_0xa503('0x2b')});db[_0xa503('0x159')][_0xa503('0x134')](db['Team'],{'as':'Teams','through':_0xa503('0x165')});db[_0xa503('0x159')][_0xa503('0x134')](db[_0xa503('0x144')],{'as':_0xa503('0x166'),'through':_0xa503('0x167')});db[_0xa503('0x19')]['belongsTo'](db[_0xa503('0x123')],{'as':'User','foreignKey':_0xa503('0x128')});db[_0xa503('0x1b')]['belongsTo'](db[_0xa503('0x123')],{'as':_0xa503('0x123'),'foreignKey':_0xa503('0x128')});db[_0xa503('0x1c')][_0xa503('0x121')](db[_0xa503('0x1d')],{'as':'Messages','onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x168'),'sourceKey':_0xa503('0x169')});db[_0xa503('0x1d')][_0xa503('0x130')](db[_0xa503('0x1c')],{'foreignKey':_0xa503('0x168'),'targetKey':_0xa503('0x169')});db[_0xa503('0x1f')][_0xa503('0x121')](db[_0xa503('0x24')],{'as':'QueueCalls','foreignKey':_0xa503('0x16a'),'constraints':![]});db[_0xa503('0x1f')][_0xa503('0x121')](db[_0xa503('0x23')],{'as':'AgentReports','foreignKey':_0xa503('0x16a'),'constraints':![]});db[_0xa503('0x1f')]['belongsTo'](db[_0xa503('0x123')],{'as':_0xa503('0x123'),'foreignKey':_0xa503('0x128')});db[_0xa503('0x1f')][_0xa503('0x130')](db[_0xa503('0x69')],{'as':_0xa503('0x16b'),'foreignKey':_0xa503('0x16c')});db[_0xa503('0x34')][_0xa503('0x130')](db['MailAccount'],{'as':_0xa503('0x36'),'foreignKey':_0xa503('0x16d')});db[_0xa503('0x16e')][_0xa503('0x130')](db[_0xa503('0x36')],{'as':_0xa503('0x36'),'foreignKey':_0xa503('0x16d')});db[_0xa503('0x36')][_0xa503('0x11f')](db[_0xa503('0x34')],{'as':_0xa503('0x16f'),'onDelete':_0xa503('0x120')});db[_0xa503('0x36')][_0xa503('0x11f')](db[_0xa503('0x16e')],{'as':_0xa503('0x170'),'onDelete':_0xa503('0x120')});db[_0xa503('0x36')][_0xa503('0x121')](db[_0xa503('0x79')],{'as':_0xa503('0x171'),'foreignKey':'MailAccountId'});db[_0xa503('0x36')]['hasMany'](db[_0xa503('0x77')],{'as':_0xa503('0x172'),'foreignKey':_0xa503('0x16d')});db[_0xa503('0x36')][_0xa503('0x121')](db[_0xa503('0x3d')],{'as':'Messages','foreignKey':_0xa503('0x16d')});db[_0xa503('0x36')][_0xa503('0x121')](db['MailInteraction'],{'as':_0xa503('0x173')});db[_0xa503('0x36')][_0xa503('0x121')](db['MailApplication'],{'as':_0xa503('0x152')});db[_0xa503('0x36')][_0xa503('0x130')](db[_0xa503('0x144')],{'as':_0xa503('0x174'),'foreignKey':_0xa503('0x175')});db[_0xa503('0x36')][_0xa503('0x130')](db[_0xa503('0x88')],{'as':_0xa503('0x88'),'foreignKey':'TemplateId'});db[_0xa503('0x36')][_0xa503('0x130')](db['Pause'],{'as':'mandatoryDispositionPause','foreignKey':'mandatoryDispositionPauseId'});db[_0xa503('0x36')][_0xa503('0x134')](db[_0xa503('0x123')],{'as':_0xa503('0x164'),'through':_0xa503('0x176')});db[_0xa503('0x37')]['belongsToMany'](db[_0xa503('0x123')],{'as':_0xa503('0x164'),'through':'UserMailQueue'});db[_0xa503('0x37')][_0xa503('0x134')](db[_0xa503('0xd9')],{'through':'team_has_mail_queues','as':_0xa503('0x177')});db[_0xa503('0x3b')][_0xa503('0x121')](db['MailMessage'],{'as':'Messages','onDelete':_0xa503('0x120'),'foreignKey':'MailInteractionId'});db['MailInteraction'][_0xa503('0x130')](db['MailAccount'],{'as':'Account','foreignKey':_0xa503('0x16d')});db[_0xa503('0x3b')]['belongsTo'](db[_0xa503('0x69')],{'as':_0xa503('0x16b'),'foreignKey':_0xa503('0x16c')});db[_0xa503('0x3b')][_0xa503('0x130')](db['User'],{'as':_0xa503('0x178'),'foreignKey':_0xa503('0x128')});db[_0xa503('0x3b')][_0xa503('0x134')](db[_0xa503('0x87')],{'through':_0xa503('0x179'),'as':_0xa503('0x17a')});db[_0xa503('0x3b')][_0xa503('0x134')](db[_0xa503('0x87')],{'through':_0xa503('0x179'),'as':_0xa503('0x17b')});db[_0xa503('0x3b')][_0xa503('0x134')](db[_0xa503('0x123')],{'as':_0xa503('0x17c'),'through':_0xa503('0x13a'),'foreignKey':'MailInteractionId'});db[_0xa503('0x3d')][_0xa503('0x121')](db[_0xa503('0x17d')],{'as':_0xa503('0x17e'),'onDelete':_0xa503('0x120')});db[_0xa503('0x3d')][_0xa503('0x130')](db[_0xa503('0x123')],{'as':_0xa503('0x123')});db['MailMessage'][_0xa503('0x130')](db[_0xa503('0x69')],{'onDelete':'cascade','as':_0xa503('0x16b')});db['MailMessage'][_0xa503('0x130')](db[_0xa503('0x3b')],{'as':'Interaction','foreignKey':'MailInteractionId'});db['MailMessage']['belongsTo'](db[_0xa503('0x36')],{'as':_0xa503('0x17f'),'foreignKey':'MailAccountId'});db['MailApplication'][_0xa503('0x130')](db[_0xa503('0x123')],{'onDelete':_0xa503('0x180')});db[_0xa503('0x3f')][_0xa503('0x130')](db[_0xa503('0x37')],{'onDelete':'restrict'});db[_0xa503('0x3f')][_0xa503('0x130')](db[_0xa503('0x36')],{'onDelete':_0xa503('0x180')});db['MailApplication'][_0xa503('0x130')](db[_0xa503('0x7d')],{'onDelete':'restrict','foreignKey':_0xa503('0x15f')});db[_0xa503('0x3f')][_0xa503('0x130')](db['Tag'],{'onDelete':_0xa503('0x180'),'foreignKey':_0xa503('0x181')});db['MailQueueReport']['belongsTo'](db[_0xa503('0x36')],{});db[_0xa503('0x41')][_0xa503('0x130')](db[_0xa503('0x144')],{'as':_0xa503('0x174'),'foreignKey':_0xa503('0x175')});db[_0xa503('0x41')]['belongsTo'](db[_0xa503('0x69')],{'as':_0xa503('0x16b'),'foreignKey':_0xa503('0x16c')});db[_0xa503('0x41')]['belongsTo'](db[_0xa503('0x3b')],{});db[_0xa503('0x41')][_0xa503('0x130')](db[_0xa503('0x3d')],{});db[_0xa503('0x41')][_0xa503('0x130')](db[_0xa503('0x123')],{});db[_0xa503('0x41')][_0xa503('0x130')](db[_0xa503('0x37')],{});db['Dashboard'][_0xa503('0x121')](db[_0xa503('0x45')],{'as':_0xa503('0x182'),'onDelete':_0xa503('0x120')});db[_0xa503('0x149')][_0xa503('0x121')](db[_0xa503('0x79')],{'as':'Dispositions','foreignKey':_0xa503('0x183')});db['FaxAccount'][_0xa503('0x121')](db['CannedAnswer'],{'as':_0xa503('0x172'),'foreignKey':_0xa503('0x183')});db[_0xa503('0x149')]['hasMany'](db['FaxInteraction'],{'as':_0xa503('0x173')});db[_0xa503('0x149')][_0xa503('0x121')](db[_0xa503('0x48')],{'as':_0xa503('0x152')});db[_0xa503('0x149')][_0xa503('0x121')](db[_0xa503('0x16')],{'as':_0xa503('0x184'),'onDelete':_0xa503('0x120')});db[_0xa503('0x149')][_0xa503('0x121')](db[_0xa503('0x4a')],{'as':_0xa503('0x185')});db['FaxAccount']['belongsTo'](db[_0xa503('0x27')],{'as':_0xa503('0x27')});db[_0xa503('0x149')][_0xa503('0x130')](db['CmList'],{'as':_0xa503('0x174'),'foreignKey':_0xa503('0x175')});db[_0xa503('0x149')][_0xa503('0x130')](db[_0xa503('0x160')],{'as':'mandatoryDispositionPause','foreignKey':_0xa503('0x162')});db[_0xa503('0x149')]['belongsToMany'](db[_0xa503('0x123')],{'as':_0xa503('0x164'),'through':_0xa503('0x14b')});db['FaxApplication']['belongsTo'](db[_0xa503('0x123')],{'onDelete':'restrict'});db[_0xa503('0x48')][_0xa503('0x130')](db[_0xa503('0x142')],{'onDelete':_0xa503('0x180')});db['FaxApplication'][_0xa503('0x130')](db[_0xa503('0x149')],{'onDelete':_0xa503('0x180')});db['FaxApplication']['belongsTo'](db[_0xa503('0x87')],{'onDelete':_0xa503('0x180'),'foreignKey':'TagId'});db[_0xa503('0x12f')][_0xa503('0x121')](db[_0xa503('0x4a')],{'as':_0xa503('0x185'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x186')});db['FaxInteraction'][_0xa503('0x130')](db['FaxAccount'],{'as':'Account','foreignKey':_0xa503('0x183')});db[_0xa503('0x12f')][_0xa503('0x130')](db['CmContact'],{'as':_0xa503('0x16b'),'foreignKey':_0xa503('0x16c')});db[_0xa503('0x12f')][_0xa503('0x130')](db[_0xa503('0x123')],{'as':_0xa503('0x178'),'foreignKey':_0xa503('0x128')});db[_0xa503('0x12f')]['belongsToMany'](db[_0xa503('0x87')],{'through':_0xa503('0x187'),'as':_0xa503('0x17a')});db[_0xa503('0x12f')][_0xa503('0x134')](db[_0xa503('0x87')],{'through':_0xa503('0x187'),'as':_0xa503('0x17b')});db['FaxInteraction'][_0xa503('0x134')](db['User'],{'as':_0xa503('0x17c'),'through':_0xa503('0x188'),'foreignKey':_0xa503('0x186')});db[_0xa503('0x4a')]['belongsTo'](db['User'],{'onDelete':'cascade','as':_0xa503('0x123')});db[_0xa503('0x4a')][_0xa503('0x130')](db['FaxInteraction'],{'as':'Interaction','foreignKey':_0xa503('0x186')});db[_0xa503('0x4a')][_0xa503('0x130')](db[_0xa503('0x69')],{'onDelete':_0xa503('0x120'),'as':'Contact'});db['FaxMessage'][_0xa503('0x130')](db[_0xa503('0x17d')],{'as':_0xa503('0x17d'),'foreignKey':_0xa503('0x189')});db[_0xa503('0x4a')]['belongsTo'](db[_0xa503('0x149')],{'as':_0xa503('0x17f'),'foreignKey':_0xa503('0x183')});db['FaxQueue'][_0xa503('0x134')](db[_0xa503('0x123')],{'as':_0xa503('0x164'),'through':_0xa503('0x30')});db[_0xa503('0x142')][_0xa503('0x134')](db[_0xa503('0xd9')],{'through':_0xa503('0x18a'),'as':'Teams'});db[_0xa503('0x4c')]['belongsTo'](db[_0xa503('0x149')],{});db['FaxQueueReport'][_0xa503('0x130')](db['CmList'],{'as':_0xa503('0x174'),'foreignKey':_0xa503('0x175')});db['FaxQueueReport'][_0xa503('0x130')](db[_0xa503('0x69')],{'as':_0xa503('0x16b'),'foreignKey':_0xa503('0x16c')});db['FaxQueueReport'][_0xa503('0x130')](db[_0xa503('0x12f')],{});db[_0xa503('0x4c')][_0xa503('0x130')](db[_0xa503('0x4a')],{});db['FaxQueueReport']['belongsTo'](db[_0xa503('0x123')],{});db[_0xa503('0x4c')][_0xa503('0x130')](db['FaxQueue'],{});db[_0xa503('0x4e')][_0xa503('0x121')](db[_0xa503('0x79')],{'as':_0xa503('0x171'),'foreignKey':_0xa503('0x18b')});db[_0xa503('0x4e')][_0xa503('0x121')](db[_0xa503('0x77')],{'as':_0xa503('0x172'),'foreignKey':'SmsAccountId'});db[_0xa503('0x4e')]['hasMany'](db[_0xa503('0x52')],{'as':_0xa503('0x185'),'foreignKey':_0xa503('0x18b')});db[_0xa503('0x4e')][_0xa503('0x121')](db[_0xa503('0x12e')],{'as':'Interactions'});db[_0xa503('0x4e')][_0xa503('0x121')](db[_0xa503('0x50')],{'as':_0xa503('0x152')});db[_0xa503('0x4e')][_0xa503('0x130')](db[_0xa503('0x144')],{'as':'List','foreignKey':_0xa503('0x175')});db[_0xa503('0x4e')]['belongsTo'](db[_0xa503('0x160')],{'as':'mandatoryDispositionPause','foreignKey':_0xa503('0x162')});db[_0xa503('0x4e')][_0xa503('0x134')](db[_0xa503('0x123')],{'as':'Agents','through':_0xa503('0x14f')});db[_0xa503('0x50')][_0xa503('0x130')](db[_0xa503('0x123')],{'onDelete':_0xa503('0x180')});db['SmsApplication'][_0xa503('0x130')](db['SmsQueue'],{'onDelete':_0xa503('0x180')});db[_0xa503('0x50')][_0xa503('0x130')](db[_0xa503('0x4e')],{'onDelete':'restrict'});db[_0xa503('0x50')][_0xa503('0x130')](db['Interval'],{'onDelete':_0xa503('0x180'),'foreignKey':_0xa503('0x15f')});db['SmsApplication']['belongsTo'](db[_0xa503('0x87')],{'onDelete':_0xa503('0x180'),'foreignKey':_0xa503('0x181')});db['SmsInteraction'][_0xa503('0x121')](db[_0xa503('0x52')],{'as':'Messages','onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x18c')});db[_0xa503('0x12e')][_0xa503('0x130')](db['SmsAccount'],{'as':_0xa503('0x17f'),'foreignKey':_0xa503('0x18b')});db['SmsInteraction'][_0xa503('0x130')](db['CmContact'],{'as':_0xa503('0x16b'),'foreignKey':'ContactId'});db[_0xa503('0x12e')]['belongsTo'](db[_0xa503('0x123')],{'as':_0xa503('0x178'),'foreignKey':_0xa503('0x128')});db[_0xa503('0x12e')][_0xa503('0x134')](db['Tag'],{'through':_0xa503('0x18d'),'as':'Tags'});db['SmsInteraction'][_0xa503('0x134')](db[_0xa503('0x87')],{'through':'sms_interaction_has_tags','as':_0xa503('0x17b')});db[_0xa503('0x12e')]['belongsToMany'](db['User'],{'as':_0xa503('0x17c'),'through':_0xa503('0x13d'),'foreignKey':'SmsInteractionId'});db[_0xa503('0x52')][_0xa503('0x130')](db[_0xa503('0x123')],{'as':_0xa503('0x123')});db[_0xa503('0x52')]['belongsTo'](db[_0xa503('0x69')],{'onDelete':'cascade','as':_0xa503('0x16b')});db[_0xa503('0x52')]['belongsTo'](db[_0xa503('0x12e')],{'onDelete':_0xa503('0x120'),'as':_0xa503('0x18e'),'foreignKey':'SmsInteractionId'});db[_0xa503('0x52')][_0xa503('0x130')](db[_0xa503('0x4e')],{'as':_0xa503('0x17f'),'foreignKey':_0xa503('0x18b')});db['SmsQueue'][_0xa503('0x134')](db[_0xa503('0x123')],{'as':_0xa503('0x164'),'through':_0xa503('0x31'),'foreignKey':_0xa503('0x18f')});db[_0xa503('0x54')]['belongsToMany'](db[_0xa503('0xd9')],{'through':_0xa503('0x190'),'as':_0xa503('0x177')});db[_0xa503('0x56')][_0xa503('0x121')](db['Disposition'],{'as':_0xa503('0x171'),'foreignKey':_0xa503('0x191')});db[_0xa503('0x56')]['hasMany'](db['CannedAnswer'],{'as':_0xa503('0x172'),'foreignKey':'OpenchannelAccountId'});db[_0xa503('0x56')][_0xa503('0x121')](db[_0xa503('0x12b')],{'as':'Interactions','foreignKey':'OpenchannelAccountId'});db[_0xa503('0x56')][_0xa503('0x121')](db[_0xa503('0x58')],{'as':'Messages','foreignKey':_0xa503('0x191')});db[_0xa503('0x56')][_0xa503('0x121')](db[_0xa503('0x192')],{'as':'Applications','foreignKey':_0xa503('0x191')});db[_0xa503('0x56')][_0xa503('0x130')](db[_0xa503('0x144')],{'as':_0xa503('0x174'),'foreignKey':_0xa503('0x175')});db[_0xa503('0x56')][_0xa503('0x130')](db[_0xa503('0x160')],{'as':_0xa503('0x161'),'foreignKey':_0xa503('0x162')});db[_0xa503('0x56')]['belongsToMany'](db['User'],{'as':'Agents','through':_0xa503('0x14d')});db['OpenchannelApplication']['belongsTo'](db['User'],{'onDelete':_0xa503('0x180')});db[_0xa503('0x192')][_0xa503('0x130')](db['OpenchannelQueue'],{'onDelete':_0xa503('0x180'),'foreignKey':_0xa503('0x193')});db[_0xa503('0x192')]['belongsTo'](db['OpenchannelAccount'],{'onDelete':_0xa503('0x180'),'foreignKey':'OpenchannelAccountId'});db[_0xa503('0x192')][_0xa503('0x130')](db[_0xa503('0x7d')],{'onDelete':_0xa503('0x180'),'foreignKey':_0xa503('0x15f')});db['OpenchannelApplication']['belongsTo'](db['Tag'],{'onDelete':_0xa503('0x180'),'foreignKey':_0xa503('0x181')});db[_0xa503('0x12b')][_0xa503('0x121')](db[_0xa503('0x58')],{'as':_0xa503('0x185'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x194')});db[_0xa503('0x12b')][_0xa503('0x130')](db['OpenchannelAccount'],{'as':_0xa503('0x17f'),'foreignKey':_0xa503('0x191')});db[_0xa503('0x12b')][_0xa503('0x130')](db[_0xa503('0x69')],{'as':_0xa503('0x16b'),'foreignKey':_0xa503('0x16c')});db[_0xa503('0x12b')][_0xa503('0x130')](db[_0xa503('0x123')],{'as':_0xa503('0x178'),'foreignKey':_0xa503('0x128')});db['OpenchannelInteraction'][_0xa503('0x134')](db[_0xa503('0x87')],{'through':_0xa503('0x195'),'as':_0xa503('0x17a')});db[_0xa503('0x12b')][_0xa503('0x134')](db[_0xa503('0x87')],{'through':_0xa503('0x195'),'as':'ThroughTags'});db[_0xa503('0x12b')][_0xa503('0x134')](db['User'],{'as':_0xa503('0x17c'),'through':_0xa503('0x13e'),'foreignKey':_0xa503('0x194')});db[_0xa503('0x58')][_0xa503('0x130')](db[_0xa503('0x123')],{'onDelete':_0xa503('0x120'),'as':_0xa503('0x123')});db[_0xa503('0x58')][_0xa503('0x130')](db['CmContact'],{'onDelete':_0xa503('0x120'),'as':_0xa503('0x16b')});db[_0xa503('0x58')][_0xa503('0x130')](db[_0xa503('0x12b')],{'onDelete':'cascade','as':_0xa503('0x18e'),'foreignKey':_0xa503('0x194')});db['OpenchannelMessage'][_0xa503('0x130')](db[_0xa503('0x17d')],{'as':_0xa503('0x17d'),'foreignKey':_0xa503('0x189')});db[_0xa503('0x58')][_0xa503('0x130')](db['OpenchannelAccount'],{'as':_0xa503('0x17f'),'foreignKey':_0xa503('0x191')});db['OpenchannelQueue']['belongsToMany'](db[_0xa503('0x123')],{'as':_0xa503('0x164'),'through':_0xa503('0x32'),'foreignKey':_0xa503('0x193')});db['OpenchannelQueue'][_0xa503('0x134')](db['Team'],{'through':_0xa503('0x196'),'as':_0xa503('0x177')});db[_0xa503('0x5c')][_0xa503('0x121')](db[_0xa503('0x79')],{'as':_0xa503('0x171'),'foreignKey':_0xa503('0x197')});db[_0xa503('0x5c')][_0xa503('0x121')](db[_0xa503('0x77')],{'as':_0xa503('0x172'),'foreignKey':_0xa503('0x197')});db['ChatWebsite'][_0xa503('0x121')](db[_0xa503('0x66')],{'as':'ProactiveActions'});db[_0xa503('0x5c')][_0xa503('0x121')](db['ChatInteraction'],{'as':'Interactions'});db['ChatWebsite'][_0xa503('0x121')](db[_0xa503('0x198')],{'as':'Applications'});db[_0xa503('0x5c')][_0xa503('0x121')](db[_0xa503('0x199')],{'as':'Messages'});db[_0xa503('0x5c')][_0xa503('0x130')](db[_0xa503('0x144')],{'as':_0xa503('0x174'),'foreignKey':_0xa503('0x175')});db[_0xa503('0x5c')][_0xa503('0x130')](db['Interval'],{'as':_0xa503('0x7d'),'foreignKey':_0xa503('0x15f')});db[_0xa503('0x5c')]['belongsTo'](db[_0xa503('0x160')],{'as':_0xa503('0x161'),'foreignKey':_0xa503('0x162')});db[_0xa503('0x5c')][_0xa503('0x134')](db['User'],{'as':'Agents','through':_0xa503('0x148')});db['OpenchannelQueueReport'][_0xa503('0x130')](db[_0xa503('0x56')],{});db['OpenchannelQueueReport']['belongsTo'](db[_0xa503('0x144')],{'as':_0xa503('0x174'),'foreignKey':_0xa503('0x175')});db[_0xa503('0x5e')]['belongsTo'](db[_0xa503('0x69')],{'as':'Contact','foreignKey':_0xa503('0x16c')});db[_0xa503('0x5e')]['belongsTo'](db[_0xa503('0x12b')],{});db['OpenchannelQueueReport'][_0xa503('0x130')](db[_0xa503('0x58')],{});db[_0xa503('0x5e')]['belongsTo'](db[_0xa503('0x123')],{});db[_0xa503('0x5e')][_0xa503('0x130')](db[_0xa503('0x5a')],{});db['ChatApplication'][_0xa503('0x130')](db[_0xa503('0x123')],{'as':'Agent','foreignKey':_0xa503('0x128'),'onDelete':'restrict'});db[_0xa503('0x198')][_0xa503('0x130')](db[_0xa503('0x19a')],{'as':_0xa503('0x19b'),'foreignKey':_0xa503('0x19c'),'onDelete':_0xa503('0x180')});db[_0xa503('0x198')][_0xa503('0x130')](db[_0xa503('0x5c')],{'as':_0xa503('0x19d'),'foreignKey':_0xa503('0x197'),'onDelete':_0xa503('0x180')});db['ChatApplication'][_0xa503('0x130')](db[_0xa503('0x87')],{'onDelete':_0xa503('0x180'),'foreignKey':'TagId'});db[_0xa503('0x60')]['hasMany'](db[_0xa503('0x199')],{'as':'Messages','onDelete':'cascade','foreignKey':'ChatInteractionId'});db[_0xa503('0x60')][_0xa503('0x130')](db[_0xa503('0x5c')],{'as':_0xa503('0x17f'),'foreignKey':_0xa503('0x197')});db[_0xa503('0x60')][_0xa503('0x130')](db[_0xa503('0x69')],{'as':'Contact','foreignKey':_0xa503('0x16c')});db['ChatInteraction'][_0xa503('0x130')](db['User'],{'as':'Owner','foreignKey':_0xa503('0x128')});db[_0xa503('0x60')]['belongsToMany'](db[_0xa503('0x87')],{'through':_0xa503('0x19e'),'as':_0xa503('0x17a')});db[_0xa503('0x60')][_0xa503('0x134')](db[_0xa503('0x87')],{'through':_0xa503('0x19e'),'as':_0xa503('0x17b')});db[_0xa503('0x60')]['belongsToMany'](db['User'],{'as':_0xa503('0x17c'),'through':_0xa503('0x13b'),'foreignKey':_0xa503('0x19f')});db[_0xa503('0x199')]['belongsTo'](db['User'],{'onDelete':_0xa503('0x120'),'as':_0xa503('0x123')});db['ChatMessage'][_0xa503('0x130')](db['CmContact'],{'onDelete':_0xa503('0x120'),'as':'Contact','foreignKey':_0xa503('0x16c')});db[_0xa503('0x199')][_0xa503('0x130')](db['ChatInteraction'],{'onDelete':_0xa503('0x120'),'as':_0xa503('0x18e'),'foreignKey':_0xa503('0x19f')});db[_0xa503('0x199')][_0xa503('0x130')](db[_0xa503('0x17d')],{'as':'Attachment','foreignKey':'AttachmentId'});db['ChatMessage'][_0xa503('0x130')](db[_0xa503('0x5c')],{'as':_0xa503('0x17f'),'foreignKey':_0xa503('0x197')});db[_0xa503('0x62')]['belongsTo'](db[_0xa503('0x69')],{'onDelete':_0xa503('0x120'),'as':_0xa503('0x16b'),'foreignKey':_0xa503('0x16c')});db[_0xa503('0x62')][_0xa503('0x130')](db[_0xa503('0x5c')],{'as':_0xa503('0x17f'),'foreignKey':_0xa503('0x197')});db[_0xa503('0x19a')][_0xa503('0x134')](db[_0xa503('0x123')],{'as':_0xa503('0x164'),'through':'UserChatQueue','hooks':!![]});db[_0xa503('0x19a')][_0xa503('0x134')](db['Team'],{'through':'team_has_chat_queues','as':_0xa503('0x177')});db[_0xa503('0x65')][_0xa503('0x121')](db[_0xa503('0xc8')],{'as':_0xa503('0x185'),'foreignKey':_0xa503('0x1a0'),'onDelete':_0xa503('0x120')});db[_0xa503('0x65')][_0xa503('0x134')](db[_0xa503('0x123')],{'as':_0xa503('0x155'),'through':_0xa503('0x133')});db[_0xa503('0x66')][_0xa503('0x130')](db[_0xa503('0x5c')],{'as':'Website','foreignKey':_0xa503('0x197')});db[_0xa503('0x68')]['hasOne'](db[_0xa503('0x68')],{'as':_0xa503('0x1a1')});db[_0xa503('0x68')][_0xa503('0x121')](db[_0xa503('0x69')],{'as':_0xa503('0x135'),'foreignKey':'CompanyId'});db[_0xa503('0x68')][_0xa503('0x121')](db[_0xa503('0x100')],{'as':_0xa503('0x1a2'),'foreignKey':_0xa503('0x1a3')});db['CmCompany'][_0xa503('0x121')](db['SADossier'],{'as':'Dossiers','foreignKey':'CompanyId'});db[_0xa503('0x68')][_0xa503('0x130')](db['SAPaymentMethod'],{'as':_0xa503('0x1a4'),'foreignKey':_0xa503('0x1a5')});db[_0xa503('0x69')][_0xa503('0x121')](db[_0xa503('0x156')],{'as':'Hoppers','foreignKey':_0xa503('0x16c')});db[_0xa503('0x69')][_0xa503('0x121')](db[_0xa503('0x6e')],{'as':_0xa503('0x127'),'foreignKey':_0xa503('0x16c')});db[_0xa503('0x69')][_0xa503('0x121')](db[_0xa503('0x129')],{'as':'HopperHistories','foreignKey':_0xa503('0x16c')});db[_0xa503('0x69')][_0xa503('0x121')](db[_0xa503('0x71')],{'as':_0xa503('0x71'),'foreignKey':_0xa503('0x16c')});db[_0xa503('0x69')][_0xa503('0x121')](db[_0xa503('0x15b')],{'as':_0xa503('0x15c'),'foreignKey':'ContactId'});db[_0xa503('0x69')][_0xa503('0x121')](db[_0xa503('0x12b')],{'as':_0xa503('0x12c'),'foreignKey':_0xa503('0x16c'),'onDelete':_0xa503('0x180')});db['CmContact'][_0xa503('0x121')](db['ChatInteraction'],{'as':_0xa503('0x12d'),'foreignKey':_0xa503('0x16c'),'onDelete':_0xa503('0x180')});db[_0xa503('0x69')][_0xa503('0x121')](db['SmsInteraction'],{'as':_0xa503('0x1a6'),'foreignKey':_0xa503('0x16c'),'onDelete':_0xa503('0x180')});db[_0xa503('0x69')][_0xa503('0x121')](db[_0xa503('0x12f')],{'as':_0xa503('0x13c'),'foreignKey':_0xa503('0x16c'),'onDelete':'restrict'});db[_0xa503('0x69')]['hasMany'](db['MailInteraction'],{'as':_0xa503('0x139'),'foreignKey':_0xa503('0x16c'),'onDelete':_0xa503('0x180')});db[_0xa503('0x69')][_0xa503('0x121')](db[_0xa503('0x103')],{'as':_0xa503('0x16b'),'foreignKey':'ContactId','onDelete':_0xa503('0x180')});db[_0xa503('0x69')]['belongsTo'](db['CmCompany'],{'as':_0xa503('0x1a7'),'foreignKey':_0xa503('0x1a3')});db[_0xa503('0x69')]['belongsTo'](db['CmList'],{'as':_0xa503('0x174'),'foreignKey':_0xa503('0x175'),'onDelete':_0xa503('0x120')});db[_0xa503('0x69')][_0xa503('0x134')](db[_0xa503('0x123')],{'as':_0xa503('0x17c'),'through':_0xa503('0x1a8')});db['CmContact'][_0xa503('0x134')](db[_0xa503('0x87')],{'as':_0xa503('0x17a'),'through':_0xa503('0x1a9')});db[_0xa503('0x69')][_0xa503('0x134')](db[_0xa503('0x87')],{'through':_0xa503('0x1a9'),'as':_0xa503('0x17b')});db['CmHopper'][_0xa503('0x130')](db[_0xa503('0x69')],{'as':'Contact','foreignKey':_0xa503('0x16c'),'onDelete':_0xa503('0x120')});db['CmHopper']['belongsTo'](db[_0xa503('0x144')],{'as':'List','foreignKey':_0xa503('0x175'),'onDelete':_0xa503('0x120')});db[_0xa503('0x156')][_0xa503('0x130')](db['User'],{'as':_0xa503('0x1aa'),'foreignKey':'UserId'});db[_0xa503('0x156')][_0xa503('0x130')](db[_0xa503('0x159')],{'as':'Queue','foreignKey':'VoiceQueueId','onDelete':'cascade'});db[_0xa503('0x156')][_0xa503('0x130')](db[_0xa503('0xdc')],{'as':'Campaign','foreignKey':_0xa503('0x1ab'),'onDelete':_0xa503('0x120')});db['CmHopper']['belongsTo'](db[_0xa503('0x123')],{'as':_0xa503('0x178'),'foreignKey':'OwnerId'});db[_0xa503('0x6c')][_0xa503('0x130')](db[_0xa503('0x69')],{'as':'Contact','foreignKey':'ContactId','onDelete':_0xa503('0x120')});db[_0xa503('0x6c')][_0xa503('0x130')](db['CmList'],{'as':_0xa503('0x174'),'foreignKey':_0xa503('0x175'),'onDelete':_0xa503('0x120')});db[_0xa503('0x6c')]['belongsTo'](db['VoiceQueue'],{'as':_0xa503('0x19b'),'foreignKey':_0xa503('0x157'),'onDelete':_0xa503('0x120')});db[_0xa503('0x6c')][_0xa503('0x130')](db[_0xa503('0xdc')],{'as':_0xa503('0xdc'),'foreignKey':_0xa503('0x1ab'),'onDelete':_0xa503('0x120')});db['Automation']['hasMany'](db['Condition'],{'as':{'plural':_0xa503('0x1ac'),'singular':_0xa503('0x1ad')},'foreignKey':'AutomationAllId','onDelete':_0xa503('0x120'),'hooks':!![]});db[_0xa503('0x75')][_0xa503('0x121')](db[_0xa503('0x7b')],{'as':{'plural':_0xa503('0x1ae'),'singular':_0xa503('0x1af')},'foreignKey':_0xa503('0x1b0'),'onDelete':_0xa503('0x120'),'hooks':!![]});db[_0xa503('0x75')][_0xa503('0x121')](db['Action'],{'as':'Actions','foreignKey':_0xa503('0x1b1'),'onDelete':_0xa503('0x120'),'hooks':!![]});db['Interval']['hasMany'](db['Interval'],{'as':_0xa503('0x1b2'),'foreignKey':_0xa503('0x15f'),'onDelete':_0xa503('0x120'),'hooks':!![],'required':![]});db[_0xa503('0x7d')][_0xa503('0x121')](db[_0xa503('0x16')],{'as':'Extensions','foreignKey':_0xa503('0x15f'),'onDelete':'restrict'});db[_0xa503('0x7d')]['hasMany'](db[_0xa503('0x3f')],{'as':_0xa503('0x1b3'),'foreignKey':'IntervalId'});db['Interval'][_0xa503('0x121')](db[_0xa503('0x198')],{'as':'ChatApplications','foreignKey':'IntervalId'});db['Interval']['hasMany'](db[_0xa503('0x48')],{'as':_0xa503('0x1b4'),'foreignKey':'IntervalId'});db[_0xa503('0x7d')][_0xa503('0x121')](db[_0xa503('0x50')],{'as':_0xa503('0x1b5'),'foreignKey':_0xa503('0x15f')});db['Schedule']['belongsTo'](db[_0xa503('0x36')],{});db[_0xa503('0x1b6')][_0xa503('0x130')](db[_0xa503('0x92')],{'foreignKey':_0xa503('0x1b7')});db[_0xa503('0x1b6')][_0xa503('0x130')](db[_0xa503('0x90')],{'foreignKey':_0xa503('0x1b8')});db[_0xa503('0x85')][_0xa503('0x134')](db['VoiceMusicOnHold'],{'as':'Mohs','through':_0xa503('0x154'),'onDelete':_0xa503('0x180')});db[_0xa503('0x87')][_0xa503('0x134')](db[_0xa503('0x69')],{'through':_0xa503('0x1a9')});db[_0xa503('0x87')]['belongsToMany'](db[_0xa503('0x60')],{'through':_0xa503('0x19e')});db[_0xa503('0x87')][_0xa503('0x134')](db[_0xa503('0x3b')],{'through':_0xa503('0x179')});db['Tag'][_0xa503('0x134')](db[_0xa503('0x12e')],{'through':_0xa503('0x18d')});db[_0xa503('0x87')][_0xa503('0x134')](db[_0xa503('0x12f')],{'through':_0xa503('0x187')});db[_0xa503('0x87')][_0xa503('0x134')](db[_0xa503('0x12b')],{'through':_0xa503('0x195')});db[_0xa503('0x8a')]['hasMany'](db[_0xa503('0x7b')],{'as':{'plural':'AllConditions','singular':_0xa503('0x1b9')},'foreignKey':'TriggerAllId','onDelete':_0xa503('0x120'),'hooks':!![]});db['Trigger']['hasMany'](db['Condition'],{'as':{'plural':'AnyConditions','singular':_0xa503('0x1ba')},'foreignKey':_0xa503('0x1bb'),'onDelete':'cascade','hooks':!![]});db['Trigger'][_0xa503('0x121')](db[_0xa503('0x1bc')],{'as':_0xa503('0x1bd'),'foreignKey':'TriggerId','onDelete':_0xa503('0x120'),'hooks':!![]});db[_0xa503('0x90')][_0xa503('0x121')](db[_0xa503('0x97')],{'as':_0xa503('0x1be'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1b8'),'hooks':!![]});db['AnalyticDefaultReport'][_0xa503('0x121')](db[_0xa503('0x97')],{'as':_0xa503('0x1be'),'onDelete':'cascade','foreignKey':_0xa503('0x1b7')});db['AnalyticMetric'][_0xa503('0x121')](db[_0xa503('0x97')],{'as':_0xa503('0x1be'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1bf')});db[_0xa503('0x97')][_0xa503('0x130')](db[_0xa503('0x95')],{'foreignKey':_0xa503('0x1bf')});db[_0xa503('0x9b')]['hasMany'](db[_0xa503('0x9d')],{'as':_0xa503('0x1c0'),'onDelete':_0xa503('0x120'),'foreignKey':'AccountId'});db[_0xa503('0x9d')]['hasMany'](db[_0xa503('0x9f')],{'as':_0xa503('0x1c1'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c2')});db['SalesforceConfiguration'][_0xa503('0x121')](db['SalesforceField'],{'as':_0xa503('0x1c3'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c4')});db[_0xa503('0x9d')][_0xa503('0x121')](db[_0xa503('0x9f')],{'as':_0xa503('0x1be'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c5')});db[_0xa503('0x9d')]['belongsTo'](db[_0xa503('0x9b')],{'as':_0xa503('0x17f'),'foreignKey':_0xa503('0x1c6')});db[_0xa503('0x9f')]['hasMany'](db[_0xa503('0x9f')],{'as':_0xa503('0x1c7'),'foreignKey':_0xa503('0x1c2')});db[_0xa503('0x9f')][_0xa503('0x121')](db[_0xa503('0x9f')],{'as':'Description','foreignKey':_0xa503('0x1c4')});db[_0xa503('0x9f')][_0xa503('0x121')](db[_0xa503('0x9f')],{'as':'Field','foreignKey':_0xa503('0x1c5')});db[_0xa503('0x9f')][_0xa503('0x130')](db[_0xa503('0x8c')],{'as':_0xa503('0x8c'),'foreignKey':_0xa503('0x1c8')});db['SugarcrmAccount'][_0xa503('0x121')](db[_0xa503('0x1c9')],{'as':_0xa503('0x1c0'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c6')});db[_0xa503('0x1c9')]['hasMany'](db[_0xa503('0xa3')],{'as':_0xa503('0x1c1'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c2')});db[_0xa503('0x1c9')]['hasMany'](db['SugarcrmField'],{'as':_0xa503('0x1c3'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c4')});db[_0xa503('0x1c9')][_0xa503('0x121')](db[_0xa503('0xa3')],{'as':_0xa503('0x1be'),'onDelete':'cascade','foreignKey':_0xa503('0x1c5')});db[_0xa503('0x1c9')]['belongsTo'](db['SugarcrmAccount'],{'as':_0xa503('0x17f'),'foreignKey':_0xa503('0x1c6')});db[_0xa503('0xa3')][_0xa503('0x121')](db[_0xa503('0xa3')],{'as':_0xa503('0x1c7'),'foreignKey':_0xa503('0x1c2')});db['SugarcrmField']['hasMany'](db[_0xa503('0xa3')],{'as':'Description','foreignKey':_0xa503('0x1c4')});db['SugarcrmField']['hasMany'](db[_0xa503('0xa3')],{'as':_0xa503('0x1ca'),'foreignKey':_0xa503('0x1c5')});db[_0xa503('0xa3')]['belongsTo'](db[_0xa503('0x8c')],{'as':_0xa503('0x8c'),'foreignKey':'VariableId'});db[_0xa503('0xa5')][_0xa503('0x121')](db[_0xa503('0x1cb')],{'as':'Configurations','onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c6')});db[_0xa503('0x1cb')]['hasMany'](db[_0xa503('0x1cc')],{'as':_0xa503('0x1c1'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c2')});db[_0xa503('0x1cb')][_0xa503('0x121')](db['DeskField'],{'as':'Descriptions','onDelete':'cascade','foreignKey':_0xa503('0x1c4')});db[_0xa503('0x1cb')][_0xa503('0x121')](db[_0xa503('0x1cc')],{'as':'Fields','onDelete':_0xa503('0x120'),'foreignKey':'FieldId'});db['DeskConfiguration'][_0xa503('0x130')](db[_0xa503('0xa5')],{'as':_0xa503('0x17f'),'foreignKey':_0xa503('0x1c6')});db['DeskConfiguration'][_0xa503('0x134')](db[_0xa503('0x87')],{'through':_0xa503('0x1cd')});db[_0xa503('0x1cc')][_0xa503('0x121')](db[_0xa503('0x1cc')],{'as':_0xa503('0x1c7'),'foreignKey':_0xa503('0x1c2')});db[_0xa503('0x1cc')][_0xa503('0x121')](db[_0xa503('0x1cc')],{'as':_0xa503('0x1ce'),'foreignKey':_0xa503('0x1c4')});db[_0xa503('0x1cc')][_0xa503('0x121')](db[_0xa503('0x1cc')],{'as':'Field','foreignKey':'FieldId'});db[_0xa503('0x1cc')]['belongsTo'](db['Variable'],{'as':_0xa503('0x8c'),'foreignKey':_0xa503('0x1c8')});db[_0xa503('0xa9')][_0xa503('0x121')](db['ZohoConfiguration'],{'as':'Configurations','onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c6')});db[_0xa503('0xab')]['hasMany'](db[_0xa503('0x1cf')],{'as':'Subjects','onDelete':'cascade','foreignKey':_0xa503('0x1c2')});db[_0xa503('0xab')][_0xa503('0x121')](db['ZohoField'],{'as':'Descriptions','onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c4')});db['ZohoConfiguration'][_0xa503('0x121')](db[_0xa503('0x1cf')],{'as':_0xa503('0x1be'),'onDelete':'cascade','foreignKey':_0xa503('0x1c5')});db[_0xa503('0xab')]['belongsTo'](db['ZohoAccount'],{'as':_0xa503('0x17f'),'foreignKey':'AccountId'});db[_0xa503('0x1cf')]['hasMany'](db[_0xa503('0x1cf')],{'as':_0xa503('0x1c7'),'foreignKey':'SubjectId'});db[_0xa503('0x1cf')][_0xa503('0x121')](db['ZohoField'],{'as':_0xa503('0x1ce'),'foreignKey':_0xa503('0x1c4')});db[_0xa503('0x1cf')][_0xa503('0x121')](db['ZohoField'],{'as':_0xa503('0x1ca'),'foreignKey':_0xa503('0x1c5')});db['ZohoField'][_0xa503('0x130')](db[_0xa503('0x8c')],{'as':_0xa503('0x8c'),'foreignKey':'VariableId'});db[_0xa503('0x1d0')]['hasMany'](db['ZendeskConfiguration'],{'as':_0xa503('0x1c0'),'onDelete':_0xa503('0x120'),'foreignKey':'AccountId'});db[_0xa503('0xae')]['hasMany'](db[_0xa503('0xb0')],{'as':_0xa503('0x1c1'),'foreignKey':'SubjectId'});db[_0xa503('0xae')][_0xa503('0x121')](db['ZendeskField'],{'as':_0xa503('0x1c3'),'foreignKey':_0xa503('0x1c4')});db[_0xa503('0xae')][_0xa503('0x121')](db['ZendeskField'],{'as':_0xa503('0x1be'),'foreignKey':_0xa503('0x1c5')});db['ZendeskConfiguration'][_0xa503('0x130')](db[_0xa503('0x1d0')],{'as':'Account','foreignKey':_0xa503('0x1c6')});db[_0xa503('0xae')]['belongsToMany'](db[_0xa503('0x87')],{'through':'int_zendesk_configuration_has_tags'});db['ZendeskField']['hasMany'](db[_0xa503('0xb0')],{'as':_0xa503('0x1c7'),'foreignKey':'SubjectId'});db[_0xa503('0xb0')][_0xa503('0x121')](db[_0xa503('0xb0')],{'as':_0xa503('0x1ce'),'foreignKey':_0xa503('0x1c4')});db[_0xa503('0xb0')][_0xa503('0x121')](db[_0xa503('0xb0')],{'as':_0xa503('0x1ca'),'foreignKey':'FieldId'});db[_0xa503('0xb0')]['belongsTo'](db[_0xa503('0x8c')],{'as':_0xa503('0x8c'),'foreignKey':_0xa503('0x1c8')});db['FreshdeskAccount'][_0xa503('0x121')](db['FreshdeskConfiguration'],{'as':'Configurations','onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c6')});db['FreshdeskConfiguration'][_0xa503('0x121')](db[_0xa503('0xb4')],{'as':_0xa503('0x1c1'),'onDelete':_0xa503('0x120'),'foreignKey':'SubjectId'});db[_0xa503('0xb2')][_0xa503('0x121')](db[_0xa503('0xb4')],{'as':'Descriptions','onDelete':_0xa503('0x120'),'foreignKey':'DescriptionId'});db[_0xa503('0xb2')][_0xa503('0x121')](db[_0xa503('0xb4')],{'as':'Fields','onDelete':_0xa503('0x120'),'foreignKey':'FieldId'});db['FreshdeskConfiguration']['belongsTo'](db[_0xa503('0x1d1')],{'as':_0xa503('0x17f'),'foreignKey':_0xa503('0x1c6')});db[_0xa503('0xb2')][_0xa503('0x134')](db[_0xa503('0x87')],{'through':'int_freshdesk_configuration_has_tags'});db[_0xa503('0xb4')][_0xa503('0x121')](db['FreshdeskField'],{'as':'Subject','foreignKey':'SubjectId'});db[_0xa503('0xb4')][_0xa503('0x121')](db['FreshdeskField'],{'as':_0xa503('0x1ce'),'foreignKey':'DescriptionId'});db[_0xa503('0xb4')]['hasMany'](db[_0xa503('0xb4')],{'as':_0xa503('0x1ca'),'foreignKey':'FieldId'});db[_0xa503('0xb4')][_0xa503('0x130')](db[_0xa503('0x8c')],{'as':_0xa503('0x8c'),'foreignKey':_0xa503('0x1c8')});db['VtigerAccount'][_0xa503('0x121')](db['VtigerConfiguration'],{'as':_0xa503('0x1c0'),'onDelete':'cascade','foreignKey':_0xa503('0x1c6')});db[_0xa503('0xb7')][_0xa503('0x121')](db[_0xa503('0xb8')],{'as':_0xa503('0x1c1'),'foreignKey':_0xa503('0x1c2')});db['VtigerConfiguration']['hasMany'](db[_0xa503('0xb8')],{'as':_0xa503('0x1c3'),'foreignKey':_0xa503('0x1c4')});db[_0xa503('0xb7')][_0xa503('0x121')](db[_0xa503('0xb8')],{'as':'Fields','foreignKey':_0xa503('0x1c5')});db[_0xa503('0xb7')][_0xa503('0x130')](db[_0xa503('0xb5')],{'as':'Account','foreignKey':_0xa503('0x1c6')});db[_0xa503('0xb7')][_0xa503('0x134')](db[_0xa503('0x87')],{'through':_0xa503('0x1d2')});db[_0xa503('0xb8')]['hasMany'](db['VtigerField'],{'as':'Subject','foreignKey':_0xa503('0x1c2')});db[_0xa503('0xb8')][_0xa503('0x121')](db['VtigerField'],{'as':_0xa503('0x1ce'),'foreignKey':'DescriptionId'});db[_0xa503('0xb8')][_0xa503('0x121')](db['VtigerField'],{'as':_0xa503('0x1ca'),'foreignKey':_0xa503('0x1c5')});db[_0xa503('0xb8')][_0xa503('0x130')](db[_0xa503('0x8c')],{'as':_0xa503('0x8c'),'foreignKey':_0xa503('0x1c8')});db['ServicenowAccount'][_0xa503('0x121')](db[_0xa503('0x1d3')],{'as':_0xa503('0x1c0'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c6')});db[_0xa503('0x1d3')][_0xa503('0x121')](db[_0xa503('0x1d4')],{'as':_0xa503('0x1c1'),'foreignKey':_0xa503('0x1c2')});db['ServicenowConfiguration'][_0xa503('0x121')](db['ServicenowField'],{'as':'Descriptions','foreignKey':_0xa503('0x1c4')});db[_0xa503('0x1d3')]['hasMany'](db[_0xa503('0x1d4')],{'as':_0xa503('0x1be'),'foreignKey':_0xa503('0x1c5')});db[_0xa503('0x1d3')][_0xa503('0x130')](db[_0xa503('0xba')],{'as':_0xa503('0x17f'),'foreignKey':'AccountId'});db[_0xa503('0x1d4')]['hasMany'](db[_0xa503('0x1d4')],{'as':_0xa503('0x1c7'),'foreignKey':'SubjectId'});db[_0xa503('0x1d4')][_0xa503('0x121')](db[_0xa503('0x1d4')],{'as':_0xa503('0x1ce'),'foreignKey':'DescriptionId'});db['ServicenowField'][_0xa503('0x121')](db['ServicenowField'],{'as':_0xa503('0x1ca'),'foreignKey':_0xa503('0x1c5')});db['ServicenowField'][_0xa503('0x130')](db['Variable'],{'as':_0xa503('0x8c'),'foreignKey':'VariableId'});db['Dynamics365Account'][_0xa503('0x121')](db[_0xa503('0xbf')],{'as':_0xa503('0x1c0'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c6')});db[_0xa503('0xbf')][_0xa503('0x121')](db[_0xa503('0xc1')],{'as':_0xa503('0x1c1'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c2')});db[_0xa503('0xbf')][_0xa503('0x121')](db[_0xa503('0xc1')],{'as':_0xa503('0x1c3'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c4')});db[_0xa503('0xbf')]['hasMany'](db[_0xa503('0xc1')],{'as':_0xa503('0x1be'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1c5')});db[_0xa503('0xbf')][_0xa503('0x130')](db['Dynamics365Account'],{'as':'Account','foreignKey':_0xa503('0x1c6')});db['Dynamics365Field']['hasMany'](db[_0xa503('0xc1')],{'as':_0xa503('0x1c7'),'foreignKey':'SubjectId'});db['Dynamics365Field']['hasMany'](db['Dynamics365Field'],{'as':_0xa503('0x1ce'),'foreignKey':'DescriptionId'});db[_0xa503('0xc1')]['hasMany'](db[_0xa503('0xc1')],{'as':_0xa503('0x1ca'),'foreignKey':_0xa503('0x1c5')});db['Dynamics365Field'][_0xa503('0x130')](db[_0xa503('0x8c')],{'as':_0xa503('0x8c'),'foreignKey':'VariableId'});db[_0xa503('0xc6')]['belongsTo'](db[_0xa503('0x5c')],{});db[_0xa503('0xc6')][_0xa503('0x130')](db[_0xa503('0x144')],{'as':'List','foreignKey':_0xa503('0x175')});db[_0xa503('0xc6')][_0xa503('0x130')](db[_0xa503('0x69')],{'as':_0xa503('0x16b'),'foreignKey':_0xa503('0x16c')});db[_0xa503('0xc6')]['belongsTo'](db[_0xa503('0x60')],{});db[_0xa503('0xc6')]['belongsTo'](db[_0xa503('0x199')],{});db[_0xa503('0xc6')]['belongsTo'](db['User'],{});db[_0xa503('0xc6')][_0xa503('0x130')](db[_0xa503('0x19a')],{});db[_0xa503('0xc8')][_0xa503('0x130')](db[_0xa503('0x123')],{'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1d5')});db['ChatInternalMessage'][_0xa503('0x130')](db[_0xa503('0x123')],{'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x1d6')});db[_0xa503('0x15b')][_0xa503('0x121')](db['JscriptyQuestionReport'],{'foreignKey':_0xa503('0x1d7'),'onDelete':_0xa503('0x120')});db[_0xa503('0x15b')][_0xa503('0x121')](db[_0xa503('0xc9')],{'foreignKey':_0xa503('0x1d7'),'onDelete':_0xa503('0x120')});db['SmsQueueReport'][_0xa503('0x130')](db['SmsAccount'],{});db['SmsQueueReport'][_0xa503('0x130')](db[_0xa503('0x144')],{'as':_0xa503('0x174'),'foreignKey':'ListId'});db[_0xa503('0xcd')][_0xa503('0x130')](db[_0xa503('0x69')],{'as':'Contact','foreignKey':_0xa503('0x16c')});db['SmsQueueReport'][_0xa503('0x130')](db[_0xa503('0x12e')],{});db[_0xa503('0xcd')][_0xa503('0x130')](db[_0xa503('0x52')],{});db[_0xa503('0xcd')][_0xa503('0x130')](db[_0xa503('0x123')],{});db[_0xa503('0xcd')][_0xa503('0x130')](db[_0xa503('0x54')],{});db['JscriptyProject'][_0xa503('0x121')](db[_0xa503('0x15b')],{'foreignKey':'ProjectId'});db[_0xa503('0x1d8')][_0xa503('0x121')](db[_0xa503('0xcb')],{'foreignKey':'ProjectId'});db[_0xa503('0x1d8')]['hasMany'](db[_0xa503('0xc9')],{'foreignKey':_0xa503('0x1d9')});db[_0xa503('0xd5')][_0xa503('0x134')](db['User'],{'as':'Users','through':_0xa503('0x1da')});db[_0xa503('0xd9')]['belongsToMany'](db['User'],{'as':_0xa503('0x164'),'through':'user_has_teams'});db['Team'][_0xa503('0x134')](db[_0xa503('0x159')],{'through':_0xa503('0x165'),'as':_0xa503('0x13f')});db[_0xa503('0xd9')]['belongsToMany'](db[_0xa503('0x37')],{'through':_0xa503('0x1db'),'as':_0xa503('0x140')});db[_0xa503('0xd9')]['belongsToMany'](db[_0xa503('0x19a')],{'through':_0xa503('0x1dc'),'as':_0xa503('0x1dd')});db[_0xa503('0xd9')][_0xa503('0x134')](db[_0xa503('0x142')],{'through':_0xa503('0x18a'),'as':_0xa503('0x1de')});db[_0xa503('0xd9')][_0xa503('0x134')](db[_0xa503('0x54')],{'through':'team_has_sms_queues','as':_0xa503('0x1df')});db[_0xa503('0xd9')]['belongsToMany'](db['OpenchannelQueue'],{'through':_0xa503('0x196'),'as':_0xa503('0x143')});db['Campaign'][_0xa503('0x121')](db[_0xa503('0x156')],{'as':_0xa503('0x1e0'),'foreignKey':'CampaignId'});db[_0xa503('0xdc')][_0xa503('0x121')](db['CmHopperFinal'],{'as':_0xa503('0x127'),'foreignKey':_0xa503('0x1ab')});db[_0xa503('0xdc')][_0xa503('0x121')](db[_0xa503('0x129')],{'as':_0xa503('0x158'),'foreignKey':_0xa503('0x1ab')});db['Campaign'][_0xa503('0x121')](db[_0xa503('0x6c')],{'as':_0xa503('0x15a'),'foreignKey':_0xa503('0x1ab')});db[_0xa503('0xdc')][_0xa503('0x130')](db[_0xa503('0x27')],{'as':'Trunk','foreignKey':_0xa503('0x15d')});db[_0xa503('0xdc')][_0xa503('0x130')](db[_0xa503('0x27')],{'as':'TrunkBackup','foreignKey':_0xa503('0x15e')});db['Campaign'][_0xa503('0x130')](db['Interval'],{'as':_0xa503('0x7d'),'foreignKey':_0xa503('0x15f')});db[_0xa503('0xdc')][_0xa503('0x130')](db[_0xa503('0xd5')],{'as':_0xa503('0xd5'),'foreignKey':_0xa503('0x1e1')});db[_0xa503('0xdc')]['belongsToMany'](db[_0xa503('0x144')],{'as':_0xa503('0x136'),'through':_0xa503('0x1e2')});db[_0xa503('0xdc')][_0xa503('0x134')](db['CmList'],{'as':'BlackLists','through':'campaigns_has_cm_blacklists'});db['MailTransferReport'][_0xa503('0x130')](db[_0xa503('0x3d')],{});db[_0xa503('0xe1')]['belongsTo'](db[_0xa503('0x3b')],{});db[_0xa503('0xe1')][_0xa503('0x130')](db[_0xa503('0x36')],{'foreignKey':_0xa503('0x1e3'),'as':_0xa503('0x1e4')});db[_0xa503('0xe1')][_0xa503('0x130')](db[_0xa503('0x123')],{'foreignKey':_0xa503('0x1e5'),'as':_0xa503('0x1e6')});db[_0xa503('0xe1')]['belongsTo'](db[_0xa503('0x123')],{'foreignKey':_0xa503('0x1e7'),'as':'ToAgent'});db[_0xa503('0xe1')][_0xa503('0x130')](db[_0xa503('0x37')],{'foreignKey':_0xa503('0x1e8'),'as':'ToQueue'});db[_0xa503('0xe1')][_0xa503('0x130')](db['MailAccount'],{'foreignKey':_0xa503('0x1e9'),'as':_0xa503('0x1ea')});db['ChatTransferReport']['belongsTo'](db['ChatMessage'],{});db['ChatTransferReport'][_0xa503('0x130')](db[_0xa503('0x60')],{});db['ChatTransferReport'][_0xa503('0x130')](db[_0xa503('0x5c')],{'foreignKey':_0xa503('0x1eb'),'as':'FromAccount'});db[_0xa503('0xe3')][_0xa503('0x130')](db['User'],{'foreignKey':_0xa503('0x1e5'),'as':'FromAgent'});db[_0xa503('0xe3')][_0xa503('0x130')](db[_0xa503('0x123')],{'foreignKey':'ToUserId','as':_0xa503('0x1ec')});db[_0xa503('0xe3')][_0xa503('0x130')](db[_0xa503('0x19a')],{'foreignKey':_0xa503('0x1ed'),'as':_0xa503('0x1ee')});db[_0xa503('0xe3')][_0xa503('0x130')](db[_0xa503('0x5c')],{'foreignKey':_0xa503('0x1ef'),'as':_0xa503('0x1ea')});db[_0xa503('0xe5')][_0xa503('0x130')](db[_0xa503('0x4a')],{});db['FaxTransferReport'][_0xa503('0x130')](db[_0xa503('0x12f')],{});db['FaxTransferReport']['belongsTo'](db['FaxAccount'],{'foreignKey':_0xa503('0x1f0'),'as':_0xa503('0x1e4')});db['FaxTransferReport'][_0xa503('0x130')](db['User'],{'foreignKey':_0xa503('0x1e5'),'as':'FromAgent'});db[_0xa503('0xe5')][_0xa503('0x130')](db[_0xa503('0x123')],{'foreignKey':_0xa503('0x1e7'),'as':'ToAgent'});db[_0xa503('0xe5')][_0xa503('0x130')](db[_0xa503('0x142')],{'foreignKey':'ToFaxQueueId','as':_0xa503('0x1ee')});db[_0xa503('0xe5')][_0xa503('0x130')](db['FaxAccount'],{'foreignKey':_0xa503('0x1f1'),'as':_0xa503('0x1ea')});db['OpenchannelTransferReport'][_0xa503('0x130')](db[_0xa503('0x58')],{});db[_0xa503('0xe7')][_0xa503('0x130')](db[_0xa503('0x12b')],{});db[_0xa503('0xe7')][_0xa503('0x130')](db[_0xa503('0x56')],{'foreignKey':'FromOpenchannelAccountId','as':_0xa503('0x1e4')});db['OpenchannelTransferReport'][_0xa503('0x130')](db[_0xa503('0x123')],{'foreignKey':'FromUserId','as':_0xa503('0x1e6')});db[_0xa503('0xe7')][_0xa503('0x130')](db[_0xa503('0x123')],{'foreignKey':_0xa503('0x1e7'),'as':_0xa503('0x1ec')});db[_0xa503('0xe7')][_0xa503('0x130')](db[_0xa503('0x5a')],{'foreignKey':_0xa503('0x1f2'),'as':_0xa503('0x1ee')});db[_0xa503('0xe7')]['belongsTo'](db[_0xa503('0x56')],{'foreignKey':_0xa503('0x1f3'),'as':_0xa503('0x1ea')});db[_0xa503('0xe9')][_0xa503('0x130')](db[_0xa503('0x52')],{});db[_0xa503('0xe9')][_0xa503('0x130')](db[_0xa503('0x12e')],{});db[_0xa503('0xe9')]['belongsTo'](db['SmsAccount'],{'foreignKey':_0xa503('0x1f4'),'as':'FromAccount'});db[_0xa503('0xe9')]['belongsTo'](db[_0xa503('0x123')],{'foreignKey':'FromUserId','as':'FromAgent'});db[_0xa503('0xe9')][_0xa503('0x130')](db['User'],{'foreignKey':_0xa503('0x1e7'),'as':_0xa503('0x1ec')});db['SmsTransferReport'][_0xa503('0x130')](db[_0xa503('0x54')],{'foreignKey':_0xa503('0x1f5'),'as':_0xa503('0x1ee')});db['SmsTransferReport'][_0xa503('0x130')](db[_0xa503('0x4e')],{'foreignKey':'ToSmsAccountId','as':_0xa503('0x1ea')});db['CmList'][_0xa503('0x121')](db['Disposition'],{'as':_0xa503('0x171'),'foreignKey':'ListId'});db['CmList'][_0xa503('0x121')](db[_0xa503('0x72')],{'as':'CustomFields','foreignKey':_0xa503('0x175')});db[_0xa503('0x144')][_0xa503('0x121')](db[_0xa503('0x69')],{'as':_0xa503('0x135'),'onDelete':_0xa503('0x120'),'foreignKey':_0xa503('0x175')});db[_0xa503('0x144')][_0xa503('0x121')](db[_0xa503('0x6e')],{'as':_0xa503('0x127'),'foreignKey':_0xa503('0x175')});db['CmList']['hasMany'](db[_0xa503('0x129')],{'as':_0xa503('0x12a'),'foreignKey':_0xa503('0x175')});db[_0xa503('0x144')][_0xa503('0x121')](db[_0xa503('0x71')],{'as':_0xa503('0x71'),'foreignKey':_0xa503('0x175')});db[_0xa503('0x144')][_0xa503('0x134')](db[_0xa503('0x159')],{'as':_0xa503('0x1f6'),'through':'voice_queues_has_cm_lists'});db[_0xa503('0x144')][_0xa503('0x134')](db[_0xa503('0x123')],{'as':_0xa503('0x164'),'through':'cm_user_has_lists'});db[_0xa503('0xeb')]['hasMany'](db[_0xa503('0x16')],{'as':_0xa503('0x126'),'onDelete':_0xa503('0x180')});db[_0xa503('0xeb')][_0xa503('0x134')](db['User'],{'as':_0xa503('0x164'),'through':_0xa503('0x146')});db[_0xa503('0xec')][_0xa503('0x121')](db['User'],{'as':'Users','foreignKey':'userProfileId'});db[_0xa503('0xec')][_0xa503('0x121')](db['UserProfileSection'],{'as':_0xa503('0x1f7'),'foreignKey':_0xa503('0x131'),'onDelete':_0xa503('0x120')});db[_0xa503('0x1f8')][_0xa503('0x121')](db[_0xa503('0xef')],{'as':_0xa503('0x1f9'),'foreignKey':_0xa503('0x1fa'),'onDelete':_0xa503('0x120')});db[_0xa503('0xf2')][_0xa503('0x121')](db['CrmWorkflowStep'],{'foreignKey':'WorkflowId'});db[_0xa503('0xf2')][_0xa503('0x121')](db[_0xa503('0x103')],{'foreignKey':'WorkflowId'});db['CrmWorkflowStep'][_0xa503('0x11f')](db[_0xa503('0xf5')],{'foreignKey':_0xa503('0x1fb')});db[_0xa503('0xf3')][_0xa503('0x121')](db['SADossier'],{'foreignKey':_0xa503('0x1fb')});db[_0xa503('0xf3')]['belongsToMany'](db[_0xa503('0xf3')],{'as':_0xa503('0x1fc'),'through':_0xa503('0x1fd')});db['CrmTask'][_0xa503('0x121')](db[_0xa503('0xf6')],{'foreignKey':'TaskId'});db[_0xa503('0xf5')][_0xa503('0x130')](db[_0xa503('0xf3')],{'foreignKey':_0xa503('0x1fb'),'as':_0xa503('0xf3')});db[_0xa503('0xf6')]['belongsTo'](db[_0xa503('0xf5')],{'foreignKey':_0xa503('0x1fe'),'as':_0xa503('0xf5')});db[_0xa503('0x1ff')]['hasMany'](db[_0xa503('0xfd')],{'foreignKey':'TypeProductId'});db[_0xa503('0xf9')]['hasMany'](db[_0xa503('0xfd')],{'foreignKey':'UnitMeasureId'});db[_0xa503('0xfd')][_0xa503('0x121')](db['SAProductPricesList'],{'foreignKey':_0xa503('0x200')});db[_0xa503('0xfd')][_0xa503('0x130')](db['SASalesCondition'],{'as':_0xa503('0x201'),'foreignKey':'TypeSalesConditionId'});db[_0xa503('0xfd')][_0xa503('0x130')](db[_0xa503('0xf9')],{'as':_0xa503('0x202'),'foreignKey':'UnitMeasureId'});db['SAProduct'][_0xa503('0x130')](db[_0xa503('0x1ff')],{'as':_0xa503('0x203'),'foreignKey':_0xa503('0x204')});db[_0xa503('0xff')][_0xa503('0x121')](db['SAProduct'],{'foreignKey':_0xa503('0x205')});db[_0xa503('0x100')][_0xa503('0x121')](db[_0xa503('0x206')],{'foreignKey':_0xa503('0x207')});db[_0xa503('0x206')][_0xa503('0x121')](db[_0xa503('0x107')],{'as':_0xa503('0x208'),'foreignKey':_0xa503('0x209')});db[_0xa503('0x206')]['belongsTo'](db[_0xa503('0xfd')],{'as':_0xa503('0x20a'),'foreignKey':_0xa503('0x200')});db[_0xa503('0x206')][_0xa503('0x130')](db[_0xa503('0x100')],{'as':'Pricelist','foreignKey':'PriceListId'});db[_0xa503('0x103')]['hasMany'](db[_0xa503('0x20b')],{'as':_0xa503('0x20c'),'foreignKey':_0xa503('0x20d')});db[_0xa503('0x103')][_0xa503('0x121')](db[_0xa503('0x20e')],{'as':_0xa503('0x20c'),'foreignKey':_0xa503('0x20d')});db['SADossier'][_0xa503('0x121')](db[_0xa503('0x108')],{'as':_0xa503('0x20c'),'foreignKey':_0xa503('0x20d')});db['SADossier'][_0xa503('0x121')](db[_0xa503('0x20f')],{'as':_0xa503('0x20c'),'foreignKey':_0xa503('0x20d')});db[_0xa503('0x103')]['belongsTo'](db[_0xa503('0x68')],{'as':_0xa503('0x1a7'),'foreignKey':_0xa503('0x1a3')});db[_0xa503('0x103')][_0xa503('0x130')](db['CmContact'],{'as':_0xa503('0x16b'),'foreignKey':_0xa503('0x16c')});db[_0xa503('0x103')][_0xa503('0x130')](db[_0xa503('0xf2')],{'as':_0xa503('0x210'),'foreignKey':'WorkflowId'});db[_0xa503('0x103')][_0xa503('0x130')](db['CrmWorkflowStep'],{'as':'WorkflowStep','foreignKey':_0xa503('0x1fb')});db['SADossier']['belongsTo'](db[_0xa503('0x123')],{'as':_0xa503('0x123'),'foreignKey':_0xa503('0x128')});db[_0xa503('0x20b')][_0xa503('0x121')](db[_0xa503('0x20e')],{'as':_0xa503('0x211'),'foreignKey':_0xa503('0x212')});db[_0xa503('0x20b')][_0xa503('0x121')](db[_0xa503('0x108')],{'as':'Requests','foreignKey':_0xa503('0x212')});db[_0xa503('0x20b')][_0xa503('0x121')](db[_0xa503('0x20f')],{'as':_0xa503('0x211'),'foreignKey':_0xa503('0x212')});db['SARequest']['belongsTo'](db[_0xa503('0x103')],{'as':_0xa503('0x213'),'foreignKey':_0xa503('0x20d')});db[_0xa503('0x20e')][_0xa503('0x121')](db[_0xa503('0x107')],{'as':_0xa503('0x214'),'foreignKey':'QuotationId'});db['SAQuotation'][_0xa503('0x121')](db[_0xa503('0x108')],{'as':_0xa503('0x214'),'foreignKey':_0xa503('0x215')});db[_0xa503('0x20e')]['hasMany'](db[_0xa503('0x20f')],{'as':_0xa503('0x214'),'foreignKey':_0xa503('0x215')});db[_0xa503('0x20e')][_0xa503('0x130')](db[_0xa503('0x103')],{'as':_0xa503('0x213'),'foreignKey':_0xa503('0x20d')});db['SAQuotation']['belongsTo'](db[_0xa503('0x20b')],{'as':_0xa503('0x216'),'foreignKey':_0xa503('0x212')});db[_0xa503('0x107')][_0xa503('0x130')](db[_0xa503('0x206')],{'as':_0xa503('0x217'),'foreignKey':_0xa503('0x209')});db[_0xa503('0x107')][_0xa503('0x130')](db[_0xa503('0x20e')],{'as':_0xa503('0x218'),'foreignKey':_0xa503('0x215')});db[_0xa503('0x107')][_0xa503('0x130')](db[_0xa503('0x20f')],{'as':'Proforma','foreignKey':_0xa503('0x219')});db[_0xa503('0x107')][_0xa503('0x130')](db[_0xa503('0x10b')],{'as':'Invoice','foreignKey':_0xa503('0x21a')});db['SAOrder'][_0xa503('0x121')](db[_0xa503('0x20f')],{'as':_0xa503('0x21b'),'foreignKey':'OrderId'});db[_0xa503('0x108')][_0xa503('0x130')](db[_0xa503('0x103')],{'as':_0xa503('0x213'),'foreignKey':_0xa503('0x20d')});db['SAOrder']['belongsTo'](db[_0xa503('0x20b')],{'as':_0xa503('0x216'),'foreignKey':'RequestId'});db[_0xa503('0x108')][_0xa503('0x130')](db['SAQuotation'],{'as':'Quotation','foreignKey':'QuotationId'});db[_0xa503('0x20f')]['hasMany'](db[_0xa503('0x10b')],{'as':_0xa503('0x21c'),'foreignKey':_0xa503('0x219')});db[_0xa503('0x20f')][_0xa503('0x121')](db['SAProductQuotation'],{'as':_0xa503('0x21c'),'foreignKey':_0xa503('0x219')});db[_0xa503('0x20f')]['hasMany'](db[_0xa503('0x111')],{'as':_0xa503('0x21c'),'foreignKey':'ProformaId'});db[_0xa503('0x20f')][_0xa503('0x121')](db['SAPayment'],{'as':_0xa503('0x21c'),'foreignKey':_0xa503('0x219')});db[_0xa503('0x20f')][_0xa503('0x130')](db[_0xa503('0x103')],{'as':_0xa503('0x213'),'foreignKey':_0xa503('0x20d')});db['SAProforma']['belongsTo'](db['SARequest'],{'as':_0xa503('0x216'),'foreignKey':_0xa503('0x212')});db[_0xa503('0x20f')]['belongsTo'](db['SAQuotation'],{'as':_0xa503('0x218'),'foreignKey':'QuotationId'});db[_0xa503('0x20f')][_0xa503('0x130')](db[_0xa503('0x108')],{'as':_0xa503('0x21d'),'foreignKey':'OrderId'});db[_0xa503('0x10b')]['hasMany'](db['SAProductQuotation'],{'as':'Quotations','foreignKey':'InvoiceId'});db[_0xa503('0x10b')][_0xa503('0x121')](db[_0xa503('0x10f')],{'as':_0xa503('0x21e'),'foreignKey':_0xa503('0x21a')});db[_0xa503('0x10b')]['hasMany'](db['SAPayment'],{'as':_0xa503('0x21f'),'foreignKey':_0xa503('0x21a')});db['SAInvoice']['belongsTo'](db['SADossier'],{'as':_0xa503('0x213'),'foreignKey':'DossierId'});db[_0xa503('0x10b')]['belongsTo'](db[_0xa503('0x20b')],{'as':_0xa503('0x216'),'foreignKey':_0xa503('0x212')});db[_0xa503('0x10b')]['belongsTo'](db[_0xa503('0x20e')],{'as':_0xa503('0x218'),'foreignKey':_0xa503('0x215')});db[_0xa503('0x10b')][_0xa503('0x130')](db[_0xa503('0x108')],{'as':'Order','foreignKey':_0xa503('0x220')});db[_0xa503('0x10f')]['belongsTo'](db['SAInvoice'],{'as':_0xa503('0x221'),'foreignKey':_0xa503('0x21a')});db[_0xa503('0x111')]['belongsTo'](db[_0xa503('0x20f')],{'as':_0xa503('0x21c'),'foreignKey':'ProformaId'});db[_0xa503('0x113')]['belongsTo'](db[_0xa503('0x10b')],{'as':_0xa503('0x221'),'foreignKey':_0xa503('0x21a')});db[_0xa503('0x113')][_0xa503('0x130')](db['SAProforma'],{'as':_0xa503('0x21c'),'foreignKey':'ProformaId'});db['SAPaymentMethod'][_0xa503('0x121')](db[_0xa503('0x68')],{'as':'Companies','foreignKey':_0xa503('0x1a5')});db[_0xa503('0x117')][_0xa503('0x130')](db['SACreditNote'],{'as':_0xa503('0x222'),'foreignKey':_0xa503('0x223')});db[_0xa503('0x11b')][_0xa503('0x121')](db['CmCompany'],{'as':'CompanyType','foreignKey':'saCompanyType'});db[_0xa503('0x11d')][_0xa503('0x121')](db['CmCompany'],{'as':'CompanyRelationship','foreignKey':_0xa503('0x224')});module[_0xa503('0x225')]={'db':db,'dbH':dbH};