Built motion from commit fe909640.|2.6.8
[motion2.git] / server / rpc / 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 _0x32b6=['../api/cmHopper/cmHopper.rpc','../api/cmHopperBlack/cmHopperBlack.rpc','../api/cmHopperFinal/cmHopperFinal.rpc','../api/reportAgentPreview/reportAgentPreview.rpc','../api/pause/pause.rpc','../api/sound/sound.rpc','../api/cmHopperAdditionalPhone/cmHopperAdditionalPhone.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/intZohoAccount/intZohoAccount.rpc','../api/intZendeskAccount/intZendeskAccount.rpc','../api/intServicenowAccount/intServicenowAccount.rpc','../api/intDynamics365Account/intDynamics365Account.rpc','../api/intFreshsalesAccount/intFreshsalesAccount.rpc','../api/chatQueueReport/chatQueueReport.rpc','../api/smsQueueReport/smsQueueReport.rpc','../api/squareReport/squareReport.rpc','../api/squareReportDetail/squareReportDetail.rpc','../api/squareOdbc/squareOdbc.rpc','../api/squareProject/squareProject.rpc','../api/squareRecording/squareRecording.rpc','../api/squareMessage/squareMessage.rpc','../api/campaign/campaign.rpc','../api/attachment/attachment.rpc','../api/plugin/plugin.rpc','../api/whatsappAccount/whatsappAccount.rpc','../api/whatsappInteraction/whatsappInteraction.rpc','../api/whatsappMessage/whatsappMessage.rpc','../api/whatsappQueueReport/whatsappQueueReport.rpc','../api/whatsappQueue/whatsappQueue.rpc','server','http','rpc','port','localhost','error','listen','log','Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!','../config/triggers','RPC\x20listening\x20on\x20','jayson/promise','lodash','../config/environment','merge','../api/user/user.rpc','../api/voiceExtension/voiceExtension.rpc','../api/voiceQueue/voiceQueue.rpc','../api/voiceRecording/voiceRecording.rpc','../api/voiceCallReport/voiceCallReport.rpc','../api/voiceDialReport/voiceDialReport.rpc','../api/voiceAgentReport/voiceAgentReport.rpc','../api/trunk/trunk.rpc','../api/voiceTransferReport/voiceTransferReport.rpc','../api/userVoiceQueueRt/userVoiceQueueRt.rpc','../api/mailServerIn/mailServerIn.rpc','../api/mailInteraction/mailInteraction.rpc','../api/mailApplication/mailApplication.rpc','../api/faxAccount/faxAccount.rpc','../api/faxMessage/faxMessage.rpc','../api/smsAccount/smsAccount.rpc','../api/smsInteraction/smsInteraction.rpc','../api/smsMessage/smsMessage.rpc','../api/smsQueue/smsQueue.rpc','../api/openchannelApplication/openchannelApplication.rpc','../api/openchannelInteraction/openchannelInteraction.rpc','../api/openchannelMessage/openchannelMessage.rpc','../api/openchannelQueue/openchannelQueue.rpc','../api/chatInteraction/chatInteraction.rpc','../api/chatMessage/chatMessage.rpc','../api/chatQueue/chatQueue.rpc','../api/cmContact/cmContact.rpc'];(function(_0x5c5ba3,_0x37a4ee){var _0x2c672a=function(_0x1b7407){while(--_0x1b7407){_0x5c5ba3['push'](_0x5c5ba3['shift']());}};_0x2c672a(++_0x37a4ee);}(_0x32b6,0x18b));var _0x632b=function(_0x4d61d3,_0x4c4c66){_0x4d61d3=_0x4d61d3-0x0;var _0x2f7aee=_0x32b6[_0x4d61d3];return _0x2f7aee;};'use strict';var jayson=require(_0x632b('0x0'));var _=require(_0x632b('0x1'));var config=require(_0x632b('0x2'));exports['listen']=function(){return new Promise(function(_0x4c6db9,_0xd2de8d){var _0x4867ed={};_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x4')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x5')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x6')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x7')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x8')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x9')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0xa')));_0x4867ed=_['merge'](_0x4867ed,require('../api/voiceQueueReport/voiceQueueReport.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/memberReport/memberReport.rpc'));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0xb')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0xc')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0xd')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0xe')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/mailAccount/mailAccount.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/mailQueue/mailQueue.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0xf')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/mailMessage/mailMessage.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x10')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/mailQueueReport/mailQueueReport.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x11')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/faxApplication/faxApplication.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/faxInteraction/faxInteraction.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x12')));_0x4867ed=_['merge'](_0x4867ed,require('../api/faxQueue/faxQueue.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/faxQueueReport/faxQueueReport.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x13')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x14')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x15')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x16')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x17')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x18')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x19')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x1a')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/openchannelQueueReport/openchannelQueueReport.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x1b')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x1c')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x1d')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x1e')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x1f')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x20')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x21')));_0x4867ed=_['merge'](_0x4867ed,require('../api/cmHopperHistory/cmHopperHistory.rpc'));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x22')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/interval/interval.rpc'));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x23')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x24')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x25')));_0x4867ed=_['merge'](_0x4867ed,require('../api/template/template.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/trigger/trigger.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/variable/variable.rpc'));_0x4867ed=_['merge'](_0x4867ed,require('../api/intSalesforceAccount/intSalesforceAccount.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x26')));_0x4867ed=_['merge'](_0x4867ed,require('../api/intDeskAccount/intDeskAccount.rpc'));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x27')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x28')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/intFreshdeskAccount/intFreshdeskAccount.rpc'));_0x4867ed=_['merge'](_0x4867ed,require('../api/intVtigerAccount/intVtigerAccount.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x29')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x2a')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x2b')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x2c')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x2d')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x2e')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x2f')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require('../api/setting/setting.rpc'));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x30')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x31')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x32')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x33')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x34')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x35')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x36')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x37')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x38')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x39')));_0x4867ed=_[_0x632b('0x3')](_0x4867ed,require(_0x632b('0x3a')));_0x4867ed=_['merge'](_0x4867ed,require(_0x632b('0x3b')));var _0x566613=jayson[_0x632b('0x3c')](_0x4867ed)[_0x632b('0x3d')]();var _0x5eccbd=config[_0x632b('0x3e')][_0x632b('0x3f')]||config[_0x632b('0x3f')]+0x1;var _0x570042=config[_0x632b('0x3e')]['ip']||_0x632b('0x40');_0x566613['on'](_0x632b('0x41'),function(_0x17654a){return _0xd2de8d(_0x17654a);});_0x566613[_0x632b('0x42')](_0x5eccbd,_0x570042,function(){console[_0x632b('0x43')](_0x632b('0x44'),_0x570042,_0x5eccbd);require(_0x632b('0x45'))['default']();return _0x4c6db9(_0x632b('0x46')+_0x570042+':'+_0x5eccbd);});});};