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