Built motion from commit (unavailable).|2.5.4
[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 _0xd22d=['../api/whatsappInteraction/whatsappInteraction.rpc','server','rpc','port','error','../config/triggers','default','jayson/promise','../config/environment','listen','merge','../api/user/user.rpc','../api/voiceQueue/voiceQueue.rpc','../api/voiceDialReport/voiceDialReport.rpc','../api/voiceAgentReport/voiceAgentReport.rpc','../api/voiceQueueReport/voiceQueueReport.rpc','../api/memberReport/memberReport.rpc','../api/trunk/trunk.rpc','../api/userVoiceQueueRt/userVoiceQueueRt.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/faxInteraction/faxInteraction.rpc','../api/faxMessage/faxMessage.rpc','../api/faxQueue/faxQueue.rpc','../api/faxQueueReport/faxQueueReport.rpc','../api/smsAccount/smsAccount.rpc','../api/smsMessage/smsMessage.rpc','../api/smsQueue/smsQueue.rpc','../api/openchannelInteraction/openchannelInteraction.rpc','../api/openchannelQueue/openchannelQueue.rpc','../api/openchannelQueueReport/openchannelQueueReport.rpc','../api/chatMessage/chatMessage.rpc','../api/chatQueue/chatQueue.rpc','../api/cmContact/cmContact.rpc','../api/cmHopper/cmHopper.rpc','../api/cmHopperBlack/cmHopperBlack.rpc','../api/cmHopperFinal/cmHopperFinal.rpc','../api/cmHopperHistory/cmHopperHistory.rpc','../api/reportAgentPreview/reportAgentPreview.rpc','../api/interval/interval.rpc','../api/pause/pause.rpc','../api/template/template.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/intDeskAccount/intDeskAccount.rpc','../api/intZohoAccount/intZohoAccount.rpc','../api/intVtigerAccount/intVtigerAccount.rpc','../api/intServicenowAccount/intServicenowAccount.rpc','../api/intDynamics365Account/intDynamics365Account.rpc','../api/intFreshsalesAccount/intFreshsalesAccount.rpc','../api/chatQueueReport/chatQueueReport.rpc','../api/squareReportDetail/squareReportDetail.rpc','../api/squareOdbc/squareOdbc.rpc','../api/squareProject/squareProject.rpc','../api/squareRecording/squareRecording.rpc','../api/campaign/campaign.rpc','../api/attachment/attachment.rpc','../api/plugin/plugin.rpc','../api/whatsappAccount/whatsappAccount.rpc'];(function(_0x46e363,_0x45d7e2){var _0x3fb059=function(_0x5e6274){while(--_0x5e6274){_0x46e363['push'](_0x46e363['shift']());}};_0x3fb059(++_0x45d7e2);}(_0xd22d,0xc1));var _0xdd22=function(_0x39665a,_0xc729df){_0x39665a=_0x39665a-0x0;var _0x173185=_0xd22d[_0x39665a];return _0x173185;};'use strict';var jayson=require(_0xdd22('0x0'));var BPromise=require('bluebird');var _=require('lodash');var config=require(_0xdd22('0x1'));exports[_0xdd22('0x2')]=function(){return new BPromise(function(_0x23f46b,_0x3f4d30){var _0x57d6c1={};_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x4')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/voiceExtension/voiceExtension.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x5')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/voiceRecording/voiceRecording.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/voiceCallReport/voiceCallReport.rpc'));_0x57d6c1=_['merge'](_0x57d6c1,require(_0xdd22('0x6')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x7')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x8')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x9')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0xa')));_0x57d6c1=_['merge'](_0x57d6c1,require('../api/voiceTransferReport/voiceTransferReport.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0xb')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/mailServerIn/mailServerIn.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0xc')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0xd')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0xe')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0xf')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x10')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x11')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/faxAccount/faxAccount.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/faxApplication/faxApplication.rpc'));_0x57d6c1=_['merge'](_0x57d6c1,require(_0xdd22('0x12')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x13')));_0x57d6c1=_['merge'](_0x57d6c1,require(_0xdd22('0x14')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x15')));_0x57d6c1=_['merge'](_0x57d6c1,require(_0xdd22('0x16')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/smsInteraction/smsInteraction.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x17')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x18')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/openchannelApplication/openchannelApplication.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x19')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/openchannelMessage/openchannelMessage.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x1a')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x1b')));_0x57d6c1=_['merge'](_0x57d6c1,require('../api/chatInteraction/chatInteraction.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x1c')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x1d')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x1e')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x1f')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x20')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x21')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x22')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x23')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x24')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x25')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/sound/sound.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x26')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/trigger/trigger.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/variable/variable.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/intSalesforceAccount/intSalesforceAccount.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x27')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x28')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x29')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/intZendeskAccount/intZendeskAccount.rpc'));_0x57d6c1=_['merge'](_0x57d6c1,require('../api/intFreshdeskAccount/intFreshdeskAccount.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x2a')));_0x57d6c1=_['merge'](_0x57d6c1,require(_0xdd22('0x2b')));_0x57d6c1=_['merge'](_0x57d6c1,require(_0xdd22('0x2c')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x2d')));_0x57d6c1=_['merge'](_0x57d6c1,require(_0xdd22('0x2e')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/smsQueueReport/smsQueueReport.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/squareReport/squareReport.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x2f')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x30')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x31')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x32')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require('../api/squareMessage/squareMessage.rpc'));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x33')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x34')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x35')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x36')));_0x57d6c1=_[_0xdd22('0x3')](_0x57d6c1,require(_0xdd22('0x37')));_0x57d6c1=_['merge'](_0x57d6c1,require('../api/whatsappMessage/whatsappMessage.rpc'));_0x57d6c1=_['merge'](_0x57d6c1,require('../api/whatsappQueueReport/whatsappQueueReport.rpc'));_0x57d6c1=_['merge'](_0x57d6c1,require('../api/whatsappQueue/whatsappQueue.rpc'));var _0x316141=jayson[_0xdd22('0x38')](_0x57d6c1)['http']();var _0x3eacb8=config[_0xdd22('0x39')]['port']||config[_0xdd22('0x3a')]+0x1;var _0x492345=config['rpc']['ip']||'localhost';_0x316141['on'](_0xdd22('0x3b'),function(_0x4110db){return _0x3f4d30(_0x4110db);});_0x316141[_0xdd22('0x2')](_0x3eacb8,_0x492345,function(){console['log']('Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!',_0x492345,_0x3eacb8);require(_0xdd22('0x3c'))[_0xdd22('0x3d')]();return _0x23f46b('RPC\x20listening\x20on\x20'+_0x492345+':'+_0x3eacb8);});});};