Built motion from commit (unavailable).|2.5.17
[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 _0x2083=['../api/openchannelApplication/openchannelApplication.rpc','../api/openchannelInteraction/openchannelInteraction.rpc','../api/openchannelMessage/openchannelMessage.rpc','../api/openchannelQueueReport/openchannelQueueReport.rpc','../api/chatInteraction/chatInteraction.rpc','../api/chatMessage/chatMessage.rpc','../api/chatQueue/chatQueue.rpc','../api/cmContact/cmContact.rpc','../api/cmHopperBlack/cmHopperBlack.rpc','../api/cmHopperFinal/cmHopperFinal.rpc','../api/cmHopperHistory/cmHopperHistory.rpc','../api/interval/interval.rpc','../api/sound/sound.rpc','../api/template/template.rpc','../api/trigger/trigger.rpc','../api/variable/variable.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.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/chatQueueReport/chatQueueReport.rpc','../api/smsQueueReport/smsQueueReport.rpc','../api/squareReport/squareReport.rpc','../api/squareReportDetail/squareReportDetail.rpc','../api/squareOdbc/squareOdbc.rpc','../api/squareMessage/squareMessage.rpc','../api/campaign/campaign.rpc','../api/attachment/attachment.rpc','../api/plugin/plugin.rpc','../api/whatsappMessage/whatsappMessage.rpc','../api/whatsappQueueReport/whatsappQueueReport.rpc','../api/whatsappQueue/whatsappQueue.rpc','http','port','rpc','localhost','error','Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!','../config/triggers','RPC\x20listening\x20on\x20','jayson/promise','../config/environment','listen','merge','../api/voiceRecording/voiceRecording.rpc','../api/voiceCallReport/voiceCallReport.rpc','../api/voiceDialReport/voiceDialReport.rpc','../api/voiceAgentReport/voiceAgentReport.rpc','../api/voiceQueueReport/voiceQueueReport.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/mailInteraction/mailInteraction.rpc','../api/mailMessage/mailMessage.rpc','../api/mailApplication/mailApplication.rpc','../api/mailQueueReport/mailQueueReport.rpc','../api/faxApplication/faxApplication.rpc','../api/faxInteraction/faxInteraction.rpc','../api/faxQueue/faxQueue.rpc','../api/smsAccount/smsAccount.rpc','../api/smsMessage/smsMessage.rpc','../api/smsQueue/smsQueue.rpc'];(function(_0x526119,_0x5c4b34){var _0x402da2=function(_0x361fea){while(--_0x361fea){_0x526119['push'](_0x526119['shift']());}};_0x402da2(++_0x5c4b34);}(_0x2083,0x6f));var _0x3208=function(_0x3fba06,_0x3c0243){_0x3fba06=_0x3fba06-0x0;var _0x4ec6a2=_0x2083[_0x3fba06];return _0x4ec6a2;};'use strict';var jayson=require(_0x3208('0x0'));var BPromise=require('bluebird');var _=require('lodash');var config=require(_0x3208('0x1'));exports[_0x3208('0x2')]=function(){return new BPromise(function(_0x1a7697,_0x19f20d){var _0x23bb51={};_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/user/user.rpc'));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/voiceExtension/voiceExtension.rpc'));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/voiceQueue/voiceQueue.rpc'));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x4')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x5')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x6')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x7')));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x8')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x9')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0xa')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0xb')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0xc')));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0xd')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0xe')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/mailQueue/mailQueue.rpc'));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0xf')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x10')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x11')));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x12')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/faxAccount/faxAccount.rpc'));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x13')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x14')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/faxMessage/faxMessage.rpc'));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x15')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/faxQueueReport/faxQueueReport.rpc'));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x16')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/smsInteraction/smsInteraction.rpc'));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x17')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x18')));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x19')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x1a')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x1b')));_0x23bb51=_['merge'](_0x23bb51,require('../api/openchannelQueue/openchannelQueue.rpc'));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x1c')));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x1d')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x1e')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x1f')));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x20')));_0x23bb51=_['merge'](_0x23bb51,require('../api/cmHopper/cmHopper.rpc'));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x21')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x22')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x23')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/reportAgentPreview/reportAgentPreview.rpc'));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x24')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/pause/pause.rpc'));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x25')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x26')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x27')));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x28')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/intSalesforceAccount/intSalesforceAccount.rpc'));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x29')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/intDeskAccount/intDeskAccount.rpc'));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x2a')));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x2b')));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x2c')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/intVtigerAccount/intVtigerAccount.rpc'));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x2d')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x2e')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x2f')));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x30')));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x31')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x32')));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x33')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x34')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/squareProject/squareProject.rpc'));_0x23bb51=_['merge'](_0x23bb51,require('../api/squareRecording/squareRecording.rpc'));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x35')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x36')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x37')));_0x23bb51=_['merge'](_0x23bb51,require(_0x3208('0x38')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require('../api/whatsappAccount/whatsappAccount.rpc'));_0x23bb51=_['merge'](_0x23bb51,require('../api/whatsappInteraction/whatsappInteraction.rpc'));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x39')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x3a')));_0x23bb51=_[_0x3208('0x3')](_0x23bb51,require(_0x3208('0x3b')));var _0x351b7b=jayson['server'](_0x23bb51)[_0x3208('0x3c')]();var _0x528c64=config['rpc'][_0x3208('0x3d')]||config[_0x3208('0x3d')]+0x1;var _0x41b292=config[_0x3208('0x3e')]['ip']||_0x3208('0x3f');_0x351b7b['on'](_0x3208('0x40'),function(_0xf6d0e9){return _0x19f20d(_0xf6d0e9);});_0x351b7b[_0x3208('0x2')](_0x528c64,_0x41b292,function(){console['log'](_0x3208('0x41'),_0x41b292,_0x528c64);require(_0x3208('0x42'))['default']();return _0x1a7697(_0x3208('0x43')+_0x41b292+':'+_0x528c64);});});};