03eb5b8c6e47d3f788e3fe75702a352232908f39
[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 _0x1014=['../api/squareReport/squareReport.rpc','../api/setting/setting.rpc','../api/squareOdbc/squareOdbc.rpc','../api/squareProject/squareProject.rpc','../api/squareRecording/squareRecording.rpc','../api/squareMessage/squareMessage.rpc','../api/campaign/campaign.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','Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!','../config/triggers','default','RPC\x20listening\x20on\x20','lodash','listen','merge','../api/voiceExtension/voiceExtension.rpc','../api/voiceQueue/voiceQueue.rpc','../api/voiceRecording/voiceRecording.rpc','../api/voiceCallReport/voiceCallReport.rpc','../api/voiceDialReport/voiceDialReport.rpc','../api/voiceQueueReport/voiceQueueReport.rpc','../api/memberReport/memberReport.rpc','../api/trunk/trunk.rpc','../api/voiceTransferReport/voiceTransferReport.rpc','../api/userVoiceQueueRt/userVoiceQueueRt.rpc','../api/mailInteraction/mailInteraction.rpc','../api/mailMessage/mailMessage.rpc','../api/mailApplication/mailApplication.rpc','../api/mailQueueReport/mailQueueReport.rpc','../api/faxAccount/faxAccount.rpc','../api/faxApplication/faxApplication.rpc','../api/faxInteraction/faxInteraction.rpc','../api/faxMessage/faxMessage.rpc','../api/faxQueue/faxQueue.rpc','../api/faxQueueReport/faxQueueReport.rpc','../api/smsAccount/smsAccount.rpc','../api/smsMessage/smsMessage.rpc','../api/smsQueue/smsQueue.rpc','../api/openchannelMessage/openchannelMessage.rpc','../api/openchannelQueue/openchannelQueue.rpc','../api/openchannelQueueReport/openchannelQueueReport.rpc','../api/chatInteraction/chatInteraction.rpc','../api/chatMessage/chatMessage.rpc','../api/chatQueue/chatQueue.rpc','../api/cmHopper/cmHopper.rpc','../api/cmHopperBlack/cmHopperBlack.rpc','../api/cmHopperFinal/cmHopperFinal.rpc','../api/pause/pause.rpc','../api/sound/sound.rpc','../api/cmHopperAdditionalPhone/cmHopperAdditionalPhone.rpc','../api/template/template.rpc','../api/trigger/trigger.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/intDeskAccount/intDeskAccount.rpc','../api/intZendeskAccount/intZendeskAccount.rpc','../api/intFreshdeskAccount/intFreshdeskAccount.rpc','../api/intVtigerAccount/intVtigerAccount.rpc','../api/intServicenowAccount/intServicenowAccount.rpc','../api/intDynamics365Account/intDynamics365Account.rpc','../api/chatQueueReport/chatQueueReport.rpc','../api/smsQueueReport/smsQueueReport.rpc'];(function(_0x3bab09,_0x217c29){var _0x164376=function(_0x277730){while(--_0x277730){_0x3bab09['push'](_0x3bab09['shift']());}};_0x164376(++_0x217c29);}(_0x1014,0x1c7));var _0x4101=function(_0x4d91a2,_0xbc3b85){_0x4d91a2=_0x4d91a2-0x0;var _0x551394=_0x1014[_0x4d91a2];return _0x551394;};'use strict';var jayson=require('jayson/promise');var _=require(_0x4101('0x0'));var config=require('../config/environment');exports[_0x4101('0x1')]=function(){return new Promise(function(_0x9c22d7,_0x4f69a3){var _0x2fc0b6={};_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require('../api/user/user.rpc'));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x3')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x4')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x5')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x6')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x7')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require('../api/voiceAgentReport/voiceAgentReport.rpc'));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x8')));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0x9')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0xa')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0xb')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0xc')));_0x2fc0b6=_['merge'](_0x2fc0b6,require('../api/mailServerIn/mailServerIn.rpc'));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require('../api/mailAccount/mailAccount.rpc'));_0x2fc0b6=_['merge'](_0x2fc0b6,require('../api/mailQueue/mailQueue.rpc'));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0xd')));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0xe')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0xf')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x10')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x11')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x12')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x13')));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0x14')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x15')));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0x16')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x17')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require('../api/smsInteraction/smsInteraction.rpc'));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x18')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x19')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require('../api/openchannelApplication/openchannelApplication.rpc'));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require('../api/openchannelInteraction/openchannelInteraction.rpc'));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x1a')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x1b')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x1c')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x1d')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x1e')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x1f')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require('../api/cmContact/cmContact.rpc'));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0x20')));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0x21')));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0x22')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require('../api/cmHopperHistory/cmHopperHistory.rpc'));_0x2fc0b6=_['merge'](_0x2fc0b6,require('../api/reportAgentPreview/reportAgentPreview.rpc'));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require('../api/interval/interval.rpc'));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x23')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x24')));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0x25')));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0x26')));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0x27')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require('../api/variable/variable.rpc'));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require('../api/intSalesforceAccount/intSalesforceAccount.rpc'));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x28')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x29')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require('../api/intZohoAccount/intZohoAccount.rpc'));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x2a')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x2b')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x2c')));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0x2d')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x2e')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require('../api/intFreshsalesAccount/intFreshsalesAccount.rpc'));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0x2f')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x30')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x31')));_0x2fc0b6=_['merge'](_0x2fc0b6,require('../api/squareReportDetail/squareReportDetail.rpc'));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0x32')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x33')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x34')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x35')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x36')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x37')));_0x2fc0b6=_['merge'](_0x2fc0b6,require('../api/attachment/attachment.rpc'));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x38')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x39')));_0x2fc0b6=_['merge'](_0x2fc0b6,require(_0x4101('0x3a')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x3b')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x3c')));_0x2fc0b6=_[_0x4101('0x2')](_0x2fc0b6,require(_0x4101('0x3d')));var _0xfb00f4=jayson[_0x4101('0x3e')](_0x2fc0b6)[_0x4101('0x3f')]();var _0x2ab401=config[_0x4101('0x40')][_0x4101('0x41')]||config[_0x4101('0x41')]+0x1;var _0x506dd4=config[_0x4101('0x40')]['ip']||_0x4101('0x42');_0xfb00f4['on'](_0x4101('0x43'),function(_0x2400a4){return _0x4f69a3(_0x2400a4);});_0xfb00f4['listen'](_0x2ab401,_0x506dd4,function(){console['log'](_0x4101('0x44'),_0x506dd4,_0x2ab401);require(_0x4101('0x45'))[_0x4101('0x46')]();return _0x9c22d7(_0x4101('0x47')+_0x506dd4+':'+_0x2ab401);});});};