Built motion from commit f74363e9.|2.6.34
[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 _0x8d9c=['../api/chatInteraction/chatInteraction.rpc','../api/chatMessage/chatMessage.rpc','../api/chatQueue/chatQueue.rpc','../api/cmContact/cmContact.rpc','../api/cmHopper/cmHopper.rpc','../api/cmHopperBlack/cmHopperBlack.rpc','../api/cmHopperHistory/cmHopperHistory.rpc','../api/reportAgentPreview/reportAgentPreview.rpc','../api/pause/pause.rpc','../api/template/template.rpc','../api/trigger/trigger.rpc','../api/intSalesforceAccount/intSalesforceAccount.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/intFreshsalesAccount/intFreshsalesAccount.rpc','../api/chatQueueReport/chatQueueReport.rpc','../api/smsQueueReport/smsQueueReport.rpc','../api/squareReport/squareReport.rpc','../api/squareReportDetail/squareReportDetail.rpc','../api/setting/setting.rpc','../api/squareProject/squareProject.rpc','../api/campaign/campaign.rpc','../api/attachment/attachment.rpc','../api/whatsappAccount/whatsappAccount.rpc','../api/whatsappInteraction/whatsappInteraction.rpc','../api/whatsappQueueReport/whatsappQueueReport.rpc','../api/whatsappQueue/whatsappQueue.rpc','port','rpc','localhost','error','log','../config/triggers','default','RPC\x20listening\x20on\x20','jayson/promise','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/voiceDialReport/voiceDialReport.rpc','../api/voiceAgentReport/voiceAgentReport.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/faxInteraction/faxInteraction.rpc','../api/faxMessage/faxMessage.rpc','../api/faxQueue/faxQueue.rpc','../api/faxQueueReport/faxQueueReport.rpc','../api/smsInteraction/smsInteraction.rpc','../api/smsQueue/smsQueue.rpc','../api/openchannelApplication/openchannelApplication.rpc','../api/openchannelInteraction/openchannelInteraction.rpc','../api/openchannelQueue/openchannelQueue.rpc','../api/openchannelQueueReport/openchannelQueueReport.rpc'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0x8d9c,0x71));var _0xc8d9=function(_0x5d3ad6,_0x8b4e68){_0x5d3ad6=_0x5d3ad6-0x0;var _0x51f125=_0x8d9c[_0x5d3ad6];return _0x51f125;};'use strict';var jayson=require(_0xc8d9('0x0'));var _=require(_0xc8d9('0x1'));var config=require(_0xc8d9('0x2'));exports[_0xc8d9('0x3')]=function(){return new Promise(function(_0x199263,_0x35d283){var _0x516375={};_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x5')));_0x516375=_['merge'](_0x516375,require(_0xc8d9('0x6')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x7')));_0x516375=_['merge'](_0x516375,require(_0xc8d9('0x8')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x9')));_0x516375=_['merge'](_0x516375,require(_0xc8d9('0xa')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0xb')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require('../api/voiceQueueReport/voiceQueueReport.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0xc')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0xd')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require('../api/voiceTransferReport/voiceTransferReport.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0xe')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0xf')));_0x516375=_['merge'](_0x516375,require(_0xc8d9('0x10')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x11')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x12')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x13')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x14')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x15')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x16')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require('../api/faxApplication/faxApplication.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x17')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x18')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x19')));_0x516375=_['merge'](_0x516375,require(_0xc8d9('0x1a')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require('../api/smsAccount/smsAccount.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x1b')));_0x516375=_['merge'](_0x516375,require('../api/smsMessage/smsMessage.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x1c')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x1d')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x1e')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require('../api/openchannelMessage/openchannelMessage.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x1f')));_0x516375=_['merge'](_0x516375,require(_0xc8d9('0x20')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x21')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x22')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x23')));_0x516375=_['merge'](_0x516375,require(_0xc8d9('0x24')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x25')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x26')));_0x516375=_['merge'](_0x516375,require('../api/cmHopperFinal/cmHopperFinal.rpc'));_0x516375=_['merge'](_0x516375,require(_0xc8d9('0x27')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x28')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require('../api/interval/interval.rpc'));_0x516375=_['merge'](_0x516375,require(_0xc8d9('0x29')));_0x516375=_['merge'](_0x516375,require('../api/sound/sound.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require('../api/cmHopperAdditionalPhone/cmHopperAdditionalPhone.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x2a')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x2b')));_0x516375=_['merge'](_0x516375,require('../api/variable/variable.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x2c')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x2d')));_0x516375=_['merge'](_0x516375,require(_0xc8d9('0x2e')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require('../api/intZohoAccount/intZohoAccount.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x2f')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x30')));_0x516375=_['merge'](_0x516375,require(_0xc8d9('0x31')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x32')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x33')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x34')));_0x516375=_['merge'](_0x516375,require(_0xc8d9('0x35')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x36')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x37')));_0x516375=_['merge'](_0x516375,require(_0xc8d9('0x38')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x39')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require('../api/squareOdbc/squareOdbc.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x3a')));_0x516375=_['merge'](_0x516375,require('../api/squareRecording/squareRecording.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require('../api/squareMessage/squareMessage.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x3b')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x3c')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require('../api/plugin/plugin.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x3d')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x3e')));_0x516375=_['merge'](_0x516375,require('../api/whatsappMessage/whatsappMessage.rpc'));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x3f')));_0x516375=_[_0xc8d9('0x4')](_0x516375,require(_0xc8d9('0x40')));var _0xadfd50=jayson['server'](_0x516375)['http']();var _0xfe9776=config['rpc'][_0xc8d9('0x41')]||config[_0xc8d9('0x41')]+0x1;var _0x1e864c=config[_0xc8d9('0x42')]['ip']||_0xc8d9('0x43');_0xadfd50['on'](_0xc8d9('0x44'),function(_0x2a25c4){return _0x35d283(_0x2a25c4);});_0xadfd50['listen'](_0xfe9776,_0x1e864c,function(){console[_0xc8d9('0x45')]('Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!',_0x1e864c,_0xfe9776);require(_0xc8d9('0x46'))[_0xc8d9('0x47')]();return _0x199263(_0xc8d9('0x48')+_0x1e864c+':'+_0xfe9776);});});};