Built motion from commit (unavailable).|2.5.13
[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 _0x64af=['../api/intSalesforceAccount/intSalesforceAccount.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/intDeskAccount/intDeskAccount.rpc','../api/intZohoAccount/intZohoAccount.rpc','../api/intZendeskAccount/intZendeskAccount.rpc','../api/intFreshdeskAccount/intFreshdeskAccount.rpc','../api/intVtigerAccount/intVtigerAccount.rpc','../api/intDynamics365Account/intDynamics365Account.rpc','../api/chatQueueReport/chatQueueReport.rpc','../api/squareReport/squareReport.rpc','../api/squareReportDetail/squareReportDetail.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/whatsappQueueReport/whatsappQueueReport.rpc','../api/whatsappQueue/whatsappQueue.rpc','server','http','rpc','port','localhost','error','../config/triggers','default','jayson/promise','lodash','../config/environment','listen','merge','../api/voiceExtension/voiceExtension.rpc','../api/voiceQueue/voiceQueue.rpc','../api/voiceCallReport/voiceCallReport.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/mailQueue/mailQueue.rpc','../api/mailMessage/mailMessage.rpc','../api/mailApplication/mailApplication.rpc','../api/mailQueueReport/mailQueueReport.rpc','../api/faxAccount/faxAccount.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/smsMessage/smsMessage.rpc','../api/openchannelApplication/openchannelApplication.rpc','../api/openchannelInteraction/openchannelInteraction.rpc','../api/openchannelQueue/openchannelQueue.rpc','../api/chatQueue/chatQueue.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/trigger/trigger.rpc'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0x64af,0xa6));var _0xf64a=function(_0x4e1d03,_0x786f3a){_0x4e1d03=_0x4e1d03-0x0;var _0x362d4b=_0x64af[_0x4e1d03];return _0x362d4b;};'use strict';var jayson=require(_0xf64a('0x0'));var BPromise=require('bluebird');var _=require(_0xf64a('0x1'));var config=require(_0xf64a('0x2'));exports[_0xf64a('0x3')]=function(){return new BPromise(function(_0x578253,_0x4be828){var _0x3e99fd={};_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/user/user.rpc'));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x5')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x6')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/voiceRecording/voiceRecording.rpc'));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x7')));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0x8')));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0x9')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/voiceQueueReport/voiceQueueReport.rpc'));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0xa')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0xb')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0xc')));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0xd')));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0xe')));_0x3e99fd=_['merge'](_0x3e99fd,require('../api/mailAccount/mailAccount.rpc'));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0xf')));_0x3e99fd=_['merge'](_0x3e99fd,require('../api/mailInteraction/mailInteraction.rpc'));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0x10')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x11')));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0x12')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x13')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x14')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x15')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x16')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x17')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x18')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/smsAccount/smsAccount.rpc'));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x19')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x1a')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/smsQueue/smsQueue.rpc'));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x1b')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x1c')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/openchannelMessage/openchannelMessage.rpc'));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0x1d')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/openchannelQueueReport/openchannelQueueReport.rpc'));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/chatInteraction/chatInteraction.rpc'));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/chatMessage/chatMessage.rpc'));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0x1e')));_0x3e99fd=_['merge'](_0x3e99fd,require('../api/cmContact/cmContact.rpc'));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/cmHopper/cmHopper.rpc'));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0x1f')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x20')));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0x21')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x22')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x23')));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0x24')));_0x3e99fd=_['merge'](_0x3e99fd,require('../api/sound/sound.rpc'));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/template/template.rpc'));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x25')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/variable/variable.rpc'));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0x26')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x27')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x28')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x29')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x2a')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x2b')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x2c')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/intServicenowAccount/intServicenowAccount.rpc'));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0x2d')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/intFreshsalesAccount/intFreshsalesAccount.rpc'));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x2e')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/smsQueueReport/smsQueueReport.rpc'));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x2f')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x30')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x31')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x32')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x33')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x34')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x35')));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0x36')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x37')));_0x3e99fd=_['merge'](_0x3e99fd,require(_0xf64a('0x38')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x39')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require('../api/whatsappMessage/whatsappMessage.rpc'));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x3a')));_0x3e99fd=_[_0xf64a('0x4')](_0x3e99fd,require(_0xf64a('0x3b')));var _0x40beb2=jayson[_0xf64a('0x3c')](_0x3e99fd)[_0xf64a('0x3d')]();var _0x1955a=config[_0xf64a('0x3e')][_0xf64a('0x3f')]||config['port']+0x1;var _0x1868d3=config[_0xf64a('0x3e')]['ip']||_0xf64a('0x40');_0x40beb2['on'](_0xf64a('0x41'),function(_0x6a8990){return _0x4be828(_0x6a8990);});_0x40beb2[_0xf64a('0x3')](_0x1955a,_0x1868d3,function(){console['log']('Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!',_0x1868d3,_0x1955a);require(_0xf64a('0x42'))[_0xf64a('0x43')]();return _0x578253('RPC\x20listening\x20on\x20'+_0x1868d3+':'+_0x1955a);});});};