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