805764ae33e135da4084091d9c17c469d9c418a7
[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 _0x078a=['Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!','../config/triggers','default','RPC\x20listening\x20on\x20','lodash','../config/environment','merge','../api/voiceExtension/voiceExtension.rpc','../api/voiceQueue/voiceQueue.rpc','../api/voiceRecording/voiceRecording.rpc','../api/voiceDialReport/voiceDialReport.rpc','../api/voiceAgentReport/voiceAgentReport.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/faxApplication/faxApplication.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/openchannelMessage/openchannelMessage.rpc','../api/openchannelQueue/openchannelQueue.rpc','../api/chatInteraction/chatInteraction.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/interval/interval.rpc','../api/pause/pause.rpc','../api/template/template.rpc','../api/variable/variable.rpc','../api/intSalesforceAccount/intSalesforceAccount.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/intDeskAccount/intDeskAccount.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/squareOdbc/squareOdbc.rpc','../api/squareProject/squareProject.rpc','../api/squareRecording/squareRecording.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/whatsappQueue/whatsappQueue.rpc','server','http','rpc','port','localhost','error','listen','log'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x078a,0x176));var _0xa078=function(_0x505a75,_0x41dfec){_0x505a75=_0x505a75-0x0;var _0x123082=_0x078a[_0x505a75];return _0x123082;};'use strict';var jayson=require('jayson/promise');var _=require(_0xa078('0x0'));var config=require(_0xa078('0x1'));exports['listen']=function(){return new Promise(function(_0x145a11,_0x4ca1d2){var _0x21e4d8={};_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/user/user.rpc'));_0x21e4d8=_['merge'](_0x21e4d8,require(_0xa078('0x3')));_0x21e4d8=_['merge'](_0x21e4d8,require(_0xa078('0x4')));_0x21e4d8=_['merge'](_0x21e4d8,require(_0xa078('0x5')));_0x21e4d8=_['merge'](_0x21e4d8,require('../api/voiceCallReport/voiceCallReport.rpc'));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x6')));_0x21e4d8=_['merge'](_0x21e4d8,require(_0xa078('0x7')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/voiceQueueReport/voiceQueueReport.rpc'));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x8')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x9')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0xa')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0xb')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0xc')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0xd')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0xe')));_0x21e4d8=_['merge'](_0x21e4d8,require(_0xa078('0xf')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/mailMessage/mailMessage.rpc'));_0x21e4d8=_['merge'](_0x21e4d8,require(_0xa078('0x10')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x11')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/faxAccount/faxAccount.rpc'));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x12')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x13')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x14')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x15')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x16')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/smsAccount/smsAccount.rpc'));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x17')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/smsMessage/smsMessage.rpc'));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x18')));_0x21e4d8=_['merge'](_0x21e4d8,require(_0xa078('0x19')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/openchannelInteraction/openchannelInteraction.rpc'));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x1a')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x1b')));_0x21e4d8=_['merge'](_0x21e4d8,require('../api/openchannelQueueReport/openchannelQueueReport.rpc'));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x1c')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/chatMessage/chatMessage.rpc'));_0x21e4d8=_['merge'](_0x21e4d8,require(_0xa078('0x1d')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x1e')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x1f')));_0x21e4d8=_['merge'](_0x21e4d8,require(_0xa078('0x20')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/cmHopperFinal/cmHopperFinal.rpc'));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x21')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x22')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x23')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x24')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/sound/sound.rpc'));_0x21e4d8=_['merge'](_0x21e4d8,require(_0xa078('0x25')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/trigger/trigger.rpc'));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x26')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x27')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x28')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x29')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/intZohoAccount/intZohoAccount.rpc'));_0x21e4d8=_['merge'](_0x21e4d8,require('../api/intZendeskAccount/intZendeskAccount.rpc'));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/intFreshdeskAccount/intFreshdeskAccount.rpc'));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x2a')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x2b')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x2c')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x2d')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x2e')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x2f')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x30')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x31')));_0x21e4d8=_['merge'](_0x21e4d8,require(_0xa078('0x32')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x33')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x34')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x35')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x36')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x37')));_0x21e4d8=_['merge'](_0x21e4d8,require(_0xa078('0x38')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x39')));_0x21e4d8=_['merge'](_0x21e4d8,require(_0xa078('0x3a')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x3b')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x3c')));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require('../api/whatsappQueueReport/whatsappQueueReport.rpc'));_0x21e4d8=_[_0xa078('0x2')](_0x21e4d8,require(_0xa078('0x3d')));var _0x1a2e01=jayson[_0xa078('0x3e')](_0x21e4d8)[_0xa078('0x3f')]();var _0x4e721d=config[_0xa078('0x40')][_0xa078('0x41')]||config['port']+0x1;var _0x32e676=config[_0xa078('0x40')]['ip']||_0xa078('0x42');_0x1a2e01['on'](_0xa078('0x43'),function(_0x233a4c){return _0x4ca1d2(_0x233a4c);});_0x1a2e01[_0xa078('0x44')](_0x4e721d,_0x32e676,function(){console[_0xa078('0x45')](_0xa078('0x46'),_0x32e676,_0x4e721d);require(_0xa078('0x47'))[_0xa078('0x48')]();return _0x145a11(_0xa078('0x49')+_0x32e676+':'+_0x4e721d);});});};