Built motion from commit 43538d75.|2.5.35
[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 _0x0274=['../api/faxInteraction/faxInteraction.rpc','../api/faxMessage/faxMessage.rpc','../api/faxQueue/faxQueue.rpc','../api/faxQueueReport/faxQueueReport.rpc','../api/smsAccount/smsAccount.rpc','../api/smsInteraction/smsInteraction.rpc','../api/smsMessage/smsMessage.rpc','../api/smsQueue/smsQueue.rpc','../api/openchannelQueueReport/openchannelQueueReport.rpc','../api/chatInteraction/chatInteraction.rpc','../api/chatMessage/chatMessage.rpc','../api/chatQueue/chatQueue.rpc','../api/cmContact/cmContact.rpc','../api/cmHopper/cmHopper.rpc','../api/cmHopperFinal/cmHopperFinal.rpc','../api/cmHopperHistory/cmHopperHistory.rpc','../api/reportAgentPreview/reportAgentPreview.rpc','../api/sound/sound.rpc','../api/template/template.rpc','../api/trigger/trigger.rpc','../api/variable/variable.rpc','../api/intSalesforceAccount/intSalesforceAccount.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/intDeskAccount/intDeskAccount.rpc','../api/intZohoAccount/intZohoAccount.rpc','../api/intZendeskAccount/intZendeskAccount.rpc','../api/intFreshdeskAccount/intFreshdeskAccount.rpc','../api/intServicenowAccount/intServicenowAccount.rpc','../api/intDynamics365Account/intDynamics365Account.rpc','../api/intFreshsalesAccount/intFreshsalesAccount.rpc','../api/smsQueueReport/smsQueueReport.rpc','../api/squareReport/squareReport.rpc','../api/squareOdbc/squareOdbc.rpc','../api/squareProject/squareProject.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','rpc','port','error','log','../config/triggers','RPC\x20listening\x20on\x20','jayson/promise','bluebird','lodash','../config/environment','listen','merge','../api/user/user.rpc','../api/voiceExtension/voiceExtension.rpc','../api/voiceQueue/voiceQueue.rpc','../api/voiceRecording/voiceRecording.rpc','../api/voiceCallReport/voiceCallReport.rpc','../api/memberReport/memberReport.rpc','../api/trunk/trunk.rpc','../api/userVoiceQueueRt/userVoiceQueueRt.rpc','../api/mailServerIn/mailServerIn.rpc','../api/mailAccount/mailAccount.rpc','../api/mailQueue/mailQueue.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'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x0274,0x79));var _0x4027=function(_0x3a2830,_0x238aad){_0x3a2830=_0x3a2830-0x0;var _0x49a8e2=_0x0274[_0x3a2830];return _0x49a8e2;};'use strict';var jayson=require(_0x4027('0x0'));var BPromise=require(_0x4027('0x1'));var _=require(_0x4027('0x2'));var config=require(_0x4027('0x3'));exports[_0x4027('0x4')]=function(){return new BPromise(function(_0x37600d,_0x1326b2){var _0x4e5cc8={};_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x6')));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0x7')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x8')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x9')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0xa')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/voiceDialReport/voiceDialReport.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/voiceAgentReport/voiceAgentReport.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/voiceQueueReport/voiceQueueReport.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0xb')));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0xc')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/voiceTransferReport/voiceTransferReport.rpc'));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0xd')));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0xe')));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0xf')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x10')));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0x11')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x12')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x13')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x14')));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0x15')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x16')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x17')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x18')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x19')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x1a')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x1b')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x1c')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x1d')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x1e')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/openchannelApplication/openchannelApplication.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/openchannelInteraction/openchannelInteraction.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/openchannelMessage/openchannelMessage.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/openchannelQueue/openchannelQueue.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x1f')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x20')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x21')));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0x22')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x23')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x24')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/cmHopperBlack/cmHopperBlack.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x25')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x26')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x27')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/interval/interval.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/pause/pause.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x28')));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0x29')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x2a')));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0x2b')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x2c')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x2d')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x2e')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x2f')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x30')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x31')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/intVtigerAccount/intVtigerAccount.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x32')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x33')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x34')));_0x4e5cc8=_['merge'](_0x4e5cc8,require('../api/chatQueueReport/chatQueueReport.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x35')));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0x36')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/squareReportDetail/squareReportDetail.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/setting/setting.rpc'));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0x37')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x38')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require('../api/squareRecording/squareRecording.rpc'));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x39')));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0x3a')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x3b')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x3c')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x3d')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x3e')));_0x4e5cc8=_['merge'](_0x4e5cc8,require(_0x4027('0x3f')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x40')));_0x4e5cc8=_[_0x4027('0x5')](_0x4e5cc8,require(_0x4027('0x41')));var _0x43a01b=jayson['server'](_0x4e5cc8)['http']();var _0x37e415=config[_0x4027('0x42')]['port']||config[_0x4027('0x43')]+0x1;var _0x46720f=config[_0x4027('0x42')]['ip']||'localhost';_0x43a01b['on'](_0x4027('0x44'),function(_0x13c8a8){return _0x1326b2(_0x13c8a8);});_0x43a01b[_0x4027('0x4')](_0x37e415,_0x46720f,function(){console[_0x4027('0x45')]('Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!',_0x46720f,_0x37e415);require(_0x4027('0x46'))['default']();return _0x37600d(_0x4027('0x47')+_0x46720f+':'+_0x37e415);});});};