529b80c7339143b3b4e48f73d65b69a869bc7659
[motion-next.git] / server / rpc / index.js
1 const a1025_0x1f34=['../api/squareReportDetail/squareReportDetail.rpc','exports','../api/faxInteraction/faxInteraction.rpc','../api/voiceDialReport/voiceDialReport.rpc','../api/intVtigerAccount/intVtigerAccount.rpc','../api/voiceExtension/voiceExtension.rpc','../api/cmHopperBlack/cmHopperBlack.rpc','http','../config/environment','../api/intServicenowAccount/intServicenowAccount.rpc','../api/voiceTransferReport/voiceTransferReport.rpc','../api/faxMessage/faxMessage.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/openchannelQueueReport/openchannelQueueReport.rpc','../api/faxApplication/faxApplication.rpc','merge','../api/pause/pause.rpc','../api/voiceRecording/voiceRecording.rpc','listen','../api/campaign/campaign.rpc','../api/variable/variable.rpc','../api/cmHopperHistory/cmHopperHistory.rpc','../api/mailApplication/mailApplication.rpc','../api/squareOdbc/squareOdbc.rpc','rpc','../api/smsMessage/smsMessage.rpc','../api/mailInteraction/mailInteraction.rpc','log','../api/mailQueueReport/mailQueueReport.rpc','../api/intFreshsalesAccount/intFreshsalesAccount.rpc','../api/squareRecording/squareRecording.rpc','RPC\x20listening\x20on\x20','../api/whatsappMessage/whatsappMessage.rpc','error','port','../api/trigger/trigger.rpc','../api/smsQueueReport/smsQueueReport.rpc','../api/intZohoAccount/intZohoAccount.rpc','../api/cmHopper/cmHopper.rpc','../api/voiceQueueReport/voiceQueueReport.rpc','../api/chatQueue/chatQueue.rpc','../api/cmContact/cmContact.rpc','../api/voiceQueue/voiceQueue.rpc','../api/intDeskAccount/intDeskAccount.rpc','../api/template/template.rpc','../api/interval/interval.rpc','default','../api/whatsappAccount/whatsappAccount.rpc','../api/intZendeskAccount/intZendeskAccount.rpc','../api/trunk/trunk.rpc','../api/mailAccount/mailAccount.rpc','../api/intSalesforceAccount/intSalesforceAccount.rpc','jayson/promise','../api/cmHopperFinal/cmHopperFinal.rpc','../api/openchannelQueue/openchannelQueue.rpc','../api/mailMessage/mailMessage.rpc','../api/chatInteraction/chatInteraction.rpc','../api/openchannelApplication/openchannelApplication.rpc','Express\x20RPC\x20server\x20closed','../api/intDynamics365Account/intDynamics365Account.rpc','../api/plugin/plugin.rpc','../api/openchannelInteraction/openchannelInteraction.rpc','../api/mailQueue/mailQueue.rpc','Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!','../api/smsAccount/smsAccount.rpc','lodash','../api/voiceCallReport/voiceCallReport.rpc','../api/sound/sound.rpc','../api/squareReport/squareReport.rpc','server','../api/faxQueue/faxQueue.rpc','../api/faxAccount/faxAccount.rpc','../api/chatQueueReport/chatQueueReport.rpc','../api/voiceAgentReport/voiceAgentReport.rpc','close','../api/smsQueue/smsQueue.rpc','../api/mailServerIn/mailServerIn.rpc','../api/attachment/attachment.rpc','../api/chatMessage/chatMessage.rpc'];(function(_0x38bb0a,_0x1f34ff){const _0x3124b8=function(_0x390599){while(--_0x390599){_0x38bb0a['push'](_0x38bb0a['shift']());}};_0x3124b8(++_0x1f34ff);}(a1025_0x1f34,0x1ed));const a1025_0x3124=function(_0x38bb0a,_0x1f34ff){_0x38bb0a=_0x38bb0a-0x0;let _0x3124b8=a1025_0x1f34[_0x38bb0a];return _0x3124b8;};const _0xf37c6e=a1025_0x3124;'use strict';const jayson=require(_0xf37c6e('0x21')),_=require(_0xf37c6e('0x2e')),config=require(_0xf37c6e('0x44'));function init(){const _0x290939=_0xf37c6e;let _0x390599={};return _0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/user/user.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x41'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x17'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x4d'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x2f'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x3f'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x36'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x14'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/memberReport/memberReport.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x1e'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x46'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/userVoiceQueueRt/userVoiceQueueRt.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x39'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x1f'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x2b'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x7'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x24'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x3'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x9'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x34'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x4a'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x3e'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x47'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x33'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/faxQueueReport/faxQueueReport.rpc')),_0x390599=_['merge'](_0x390599,require(_0x290939('0x2d'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/smsInteraction/smsInteraction.rpc')),_0x390599=_['merge'](_0x390599,require(_0x290939('0x6'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x38'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x26'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x2a'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/openchannelMessage/openchannelMessage.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x23'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x49'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x25'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x3b'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x15'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x16'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x13'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x42'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x22'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x2'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/reportAgentPreview/reportAgentPreview.rpc')),_0x390599=_['merge'](_0x390599,require(_0x290939('0x1a'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x4c'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x30'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x19'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x10'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x1'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x20'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x48'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x18'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x12'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x1d'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/intFreshdeskAccount/intFreshdeskAccount.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x40'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x45'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x28'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0xa'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x35'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x11'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x31'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x3c'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x4'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/squareProject/squareProject.rpc')),_0x390599=_['merge'](_0x390599,require(_0x290939('0xb'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/squareMessage/squareMessage.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x0'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x3a'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x29'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x1c'))),_0x390599=_['merge'](_0x390599,require('../api/whatsappInteraction/whatsappInteraction.rpc')),_0x390599=_['merge'](_0x390599,require(_0x290939('0xd'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/whatsappQueueReport/whatsappQueueReport.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/whatsappQueue/whatsappQueue.rpc')),_0x390599;}class RPC{constructor(_0x14e1b1){const _0x6e6586=_0xf37c6e;this[_0x6e6586('0xf')]=config[_0x6e6586('0x5')][_0x6e6586('0xf')]||config[_0x6e6586('0xf')]+0x1,this['host']=config[_0x6e6586('0x5')]['ip']||'localhost';const _0x4f9a4b=init();this[_0x6e6586('0x32')]=jayson['server'](_0x4f9a4b)[_0x6e6586('0x43')](),typeof _0x14e1b1==='function'&&this[_0x6e6586('0x32')]['on'](_0x6e6586('0xe'),_0x14e1b1);}['listen'](){const {port:_0x3d7696,host:_0x36eeed}=this;return new Promise(_0xdd57a0=>{const _0x389237=a1025_0x3124;this[_0x389237('0x32')][_0x389237('0x4e')](_0x3d7696,_0x36eeed,function(){const _0xb75afb=_0x389237;console[_0xb75afb('0x8')](_0xb75afb('0x2c'),_0x36eeed,_0x3d7696),require('../config/triggers')[_0xb75afb('0x1b')](),_0xdd57a0(_0xb75afb('0xc')+_0x36eeed+':'+_0x3d7696);});});}[_0xf37c6e('0x37')](){return new Promise(_0x1791b3=>{const _0x189e1e=a1025_0x3124;this['server'][_0x189e1e('0x37')](()=>{const _0x4ef481=_0x189e1e;console[_0x4ef481('0x8')](_0x4ef481('0x27')),_0x1791b3();});});}}module[_0xf37c6e('0x3d')]={'RPC':RPC};