Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / api / rpc / index.js
index 0b1357b..55934f2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2744=['/agents','agents','agentCapacity','/telephones','telephones','/trunks','/campaigns','campaigns','/fax/accounts','faxAccounts','/chat/queues/waitinginteractions','chatQueuesWaitingInteractions','/mail/queues/waitinginteractions','/openchannel/queues/waitinginteractions','openchannelQueuesWaitingInteractions','/openchannel/queues/:id/waitinginteractions','smsQueuesWaitingInteractions','/whatsapp/queues/waitinginteractions','/fax/queues/waitinginteractions','faxQueuesWaitingInteractions','post','queueNotify','mail','/mail/queues/:id','/chat/queues/:id/notify','chat','/chat/queues/:id','showChatQueues','fax','/fax/queues/:id','showFaxQueues','/openchannel/queues/:id/notify','/openchannel/queues/:id','showOpenchannelQueues','sms','showSmsQueues','/whatsapp/queues/:id','showWhatsappQueues','agentNotify','exports','multer','util','path','express','Router','../../components/auth/service','./rpc.controller','get','/voice/channels','isAuthenticated','voiceChannelMixMonitor','/voice/channels/:uniqueid/stopmixmonitor','/voice/queues','voiceQueues','/chat/queues','/mail/queues','mailQueues','/openchannel/queues','openchannelQueues','/whatsapp/queues','whatsappQueues','/fax/queues','/voice/queues/preview/:id','voiceQueuesPreview','/voice/queues/channels','voiceQueuesChannels','/voice/queues/channels/:uniqueid','voiceQueuesChannel','/voice/queues/channels/:uniqueid/hangup','voiceQueuesChannelHangup','/voice/queues/channels/:uniqueid/redirect/:exten','voiceQueuesChannelRedirect','/voice/queues/:id','showVoiceQueues','put','updateVoiceQueue','/outbound','outbound','/outbound/channels','outboundChannels'];(function(_0x255ca1,_0x19ca97){var _0x5d4ce0=function(_0x194c6d){while(--_0x194c6d){_0x255ca1['push'](_0x255ca1['shift']());}};_0x5d4ce0(++_0x19ca97);}(_0x2744,0x78));var _0x4274=function(_0x320978,_0x5316a1){_0x320978=_0x320978-0x0;var _0x3f67b1=_0x2744[_0x320978];return _0x3f67b1;};'use strict';var multer=require(_0x4274('0x0'));var util=require(_0x4274('0x1'));var path=require(_0x4274('0x2'));var express=require(_0x4274('0x3'));var router=express[_0x4274('0x4')]();var auth=require(_0x4274('0x5'));var controller=require(_0x4274('0x6'));router[_0x4274('0x7')](_0x4274('0x8'),auth[_0x4274('0x9')](),controller['voiceChannels']);router['get']('/voice/channels/:uniqueid/mixmonitor',auth[_0x4274('0x9')](),controller[_0x4274('0xa')]);router[_0x4274('0x7')](_0x4274('0xb'),auth[_0x4274('0x9')](),controller['voiceChannelStopMixMonitor']);router[_0x4274('0x7')](_0x4274('0xc'),auth[_0x4274('0x9')](),controller[_0x4274('0xd')]);router[_0x4274('0x7')](_0x4274('0xe'),auth[_0x4274('0x9')](),controller['chatQueues']);router['get'](_0x4274('0xf'),auth[_0x4274('0x9')](),controller[_0x4274('0x10')]);router[_0x4274('0x7')]('/mail/accounts',auth[_0x4274('0x9')](),controller['mailAccounts']);router[_0x4274('0x7')](_0x4274('0x11'),auth[_0x4274('0x9')](),controller[_0x4274('0x12')]);router['get']('/sms/queues',auth[_0x4274('0x9')](),controller['smsQueues']);router[_0x4274('0x7')](_0x4274('0x13'),auth['isAuthenticated'](),controller[_0x4274('0x14')]);router[_0x4274('0x7')](_0x4274('0x15'),auth['isAuthenticated'](),controller['faxQueues']);router[_0x4274('0x7')](_0x4274('0x16'),auth[_0x4274('0x9')](),controller[_0x4274('0x17')]);router[_0x4274('0x7')](_0x4274('0x18'),auth['isAuthenticated'](),controller[_0x4274('0x19')]);router[_0x4274('0x7')](_0x4274('0x1a'),auth[_0x4274('0x9')](),controller[_0x4274('0x1b')]);router[_0x4274('0x7')](_0x4274('0x1c'),auth['isAuthenticated'](),controller[_0x4274('0x1d')]);router[_0x4274('0x7')](_0x4274('0x1e'),auth[_0x4274('0x9')](),controller[_0x4274('0x1f')]);router[_0x4274('0x7')](_0x4274('0x20'),auth['isAuthenticated'](),controller[_0x4274('0x21')]);router[_0x4274('0x22')](_0x4274('0x20'),auth[_0x4274('0x9')](),controller[_0x4274('0x23')]);router[_0x4274('0x7')](_0x4274('0x24'),auth[_0x4274('0x9')](),controller[_0x4274('0x25')]);router['get'](_0x4274('0x26'),auth[_0x4274('0x9')](),controller[_0x4274('0x27')]);router['get'](_0x4274('0x28'),auth[_0x4274('0x9')](),controller[_0x4274('0x29')]);router['put']('/agents/:id/capacity',auth['isAuthenticated'](),controller[_0x4274('0x2a')]);router['get'](_0x4274('0x2b'),auth[_0x4274('0x9')](),controller[_0x4274('0x2c')]);router['get'](_0x4274('0x2d'),auth[_0x4274('0x9')](),controller['trunks']);router[_0x4274('0x7')](_0x4274('0x2e'),auth[_0x4274('0x9')](),controller[_0x4274('0x2f')]);router[_0x4274('0x7')](_0x4274('0x30'),auth[_0x4274('0x9')](),controller[_0x4274('0x31')]);router[_0x4274('0x7')](_0x4274('0x32'),auth[_0x4274('0x9')](),controller[_0x4274('0x33')]);router[_0x4274('0x7')](_0x4274('0x34'),auth[_0x4274('0x9')](),controller['mailQueuesWaitingInteractions']);router['get'](_0x4274('0x35'),auth['isAuthenticated'](),controller[_0x4274('0x36')]);router[_0x4274('0x7')](_0x4274('0x37'),auth[_0x4274('0x9')](),controller['openchannelQueuesIdWaitingInteractions']);router[_0x4274('0x7')]('/sms/queues/waitinginteractions',auth[_0x4274('0x9')](),controller[_0x4274('0x38')]);router['get'](_0x4274('0x39'),auth[_0x4274('0x9')](),controller['whatsappQueuesWaitingInteractions']);router['get'](_0x4274('0x3a'),auth[_0x4274('0x9')](),controller[_0x4274('0x3b')]);router[_0x4274('0x3c')]('/mail/queues/:id/notify',auth[_0x4274('0x9')](),controller[_0x4274('0x3d')](_0x4274('0x3e')));router[_0x4274('0x7')](_0x4274('0x3f'),auth[_0x4274('0x9')](),controller['showMailQueues']);router[_0x4274('0x3c')](_0x4274('0x40'),auth[_0x4274('0x9')](),controller['queueNotify'](_0x4274('0x41')));router[_0x4274('0x7')](_0x4274('0x42'),auth[_0x4274('0x9')](),controller[_0x4274('0x43')]);router['post']('/fax/queues/:id/notify',auth['isAuthenticated'](),controller[_0x4274('0x3d')](_0x4274('0x44')));router[_0x4274('0x7')](_0x4274('0x45'),auth[_0x4274('0x9')](),controller[_0x4274('0x46')]);router[_0x4274('0x3c')](_0x4274('0x47'),auth['isAuthenticated'](),controller['queueNotify']('openchannel'));router[_0x4274('0x7')](_0x4274('0x48'),auth[_0x4274('0x9')](),controller[_0x4274('0x49')]);router[_0x4274('0x3c')]('/sms/queues/:id/notify',auth['isAuthenticated'](),controller[_0x4274('0x3d')](_0x4274('0x4a')));router[_0x4274('0x3c')]('/whatsapp/queues/:id/notify',auth[_0x4274('0x9')](),controller['queueNotify']('whatsapp'));router[_0x4274('0x7')]('/sms/queues/:id',auth[_0x4274('0x9')](),controller[_0x4274('0x4b')]);router[_0x4274('0x7')](_0x4274('0x4c'),auth[_0x4274('0x9')](),controller[_0x4274('0x4d')]);router[_0x4274('0x3c')]('/agents/:id/notify',auth[_0x4274('0x9')](),controller[_0x4274('0x4e')]);module[_0x4274('0x4f')]=router;
\ No newline at end of file
+var _0xf990=['outboundChannels','/agents','agents','/agents/:id/capacity','agentCapacity','/telephones','telephones','/trunks','trunks','/chat/queues/waitinginteractions','chatQueuesWaitingInteractions','mailQueuesWaitingInteractions','/openchannel/queues/waitinginteractions','openchannelQueuesWaitingInteractions','/openchannel/queues/:id/waitinginteractions','openchannelQueuesIdWaitingInteractions','smsQueuesWaitingInteractions','whatsappQueuesWaitingInteractions','/fax/queues/waitinginteractions','faxQueuesWaitingInteractions','/mail/queues/:id/notify','queueNotify','mail','showMailQueues','/chat/queues/:id/notify','chat','/chat/queues/:id','showChatQueues','fax','/fax/queues/:id','post','/openchannel/queues/:id/notify','openchannel','/sms/queues/:id/notify','sms','/whatsapp/queues/:id/notify','/sms/queues/:id','showSmsQueues','showWhatsappQueues','/agents/:id/notify','agentNotify','exports','multer','Router','../../components/auth/service','get','isAuthenticated','voiceChannels','voiceChannelMixMonitor','/voice/channels/:uniqueid/stopmixmonitor','voiceChannelStopMixMonitor','/voice/queues','voiceQueues','/chat/queues','/mail/queues','/mail/accounts','mailAccounts','openchannelQueues','/sms/queues','/whatsapp/queues','/fax/queues','faxQueues','/voice/queues/preview/:id','voiceQueuesPreview','/voice/queues/channels','voiceQueuesChannel','/voice/queues/channels/:uniqueid/hangup','/voice/queues/channels/:uniqueid/redirect/:exten','voiceQueuesChannelRedirect','showVoiceQueues','put','/voice/queues/:id','updateVoiceQueue','/outbound','outbound'];(function(_0x38ae89,_0x55175c){var _0x1d4118=function(_0x18f5bd){while(--_0x18f5bd){_0x38ae89['push'](_0x38ae89['shift']());}};_0x1d4118(++_0x55175c);}(_0xf990,0x75));var _0x0f99=function(_0x1a0620,_0x4f40c3){_0x1a0620=_0x1a0620-0x0;var _0x475abc=_0xf990[_0x1a0620];return _0x475abc;};'use strict';var multer=require(_0x0f99('0x0'));var util=require('util');var path=require('path');var express=require('express');var router=express[_0x0f99('0x1')]();var auth=require(_0x0f99('0x2'));var controller=require('./rpc.controller');router[_0x0f99('0x3')]('/voice/channels',auth[_0x0f99('0x4')](),controller[_0x0f99('0x5')]);router['get']('/voice/channels/:uniqueid/mixmonitor',auth[_0x0f99('0x4')](),controller[_0x0f99('0x6')]);router[_0x0f99('0x3')](_0x0f99('0x7'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x8')]);router[_0x0f99('0x3')](_0x0f99('0x9'),auth['isAuthenticated'](),controller[_0x0f99('0xa')]);router[_0x0f99('0x3')](_0x0f99('0xb'),auth[_0x0f99('0x4')](),controller['chatQueues']);router[_0x0f99('0x3')](_0x0f99('0xc'),auth['isAuthenticated'](),controller['mailQueues']);router[_0x0f99('0x3')](_0x0f99('0xd'),auth[_0x0f99('0x4')](),controller[_0x0f99('0xe')]);router[_0x0f99('0x3')]('/openchannel/queues',auth[_0x0f99('0x4')](),controller[_0x0f99('0xf')]);router[_0x0f99('0x3')](_0x0f99('0x10'),auth[_0x0f99('0x4')](),controller['smsQueues']);router['get'](_0x0f99('0x11'),auth[_0x0f99('0x4')](),controller['whatsappQueues']);router['get'](_0x0f99('0x12'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x13')]);router['get'](_0x0f99('0x14'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x15')]);router['get'](_0x0f99('0x16'),auth[_0x0f99('0x4')](),controller['voiceQueuesChannels']);router[_0x0f99('0x3')]('/voice/queues/channels/:uniqueid',auth[_0x0f99('0x4')](),controller[_0x0f99('0x17')]);router[_0x0f99('0x3')](_0x0f99('0x18'),auth[_0x0f99('0x4')](),controller['voiceQueuesChannelHangup']);router[_0x0f99('0x3')](_0x0f99('0x19'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x1a')]);router[_0x0f99('0x3')]('/voice/queues/:id',auth[_0x0f99('0x4')](),controller[_0x0f99('0x1b')]);router[_0x0f99('0x1c')](_0x0f99('0x1d'),auth['isAuthenticated'](),controller[_0x0f99('0x1e')]);router[_0x0f99('0x3')](_0x0f99('0x1f'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x20')]);router['get']('/outbound/channels',auth[_0x0f99('0x4')](),controller[_0x0f99('0x21')]);router[_0x0f99('0x3')](_0x0f99('0x22'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x23')]);router[_0x0f99('0x1c')](_0x0f99('0x24'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x25')]);router[_0x0f99('0x3')](_0x0f99('0x26'),auth['isAuthenticated'](),controller[_0x0f99('0x27')]);router[_0x0f99('0x3')](_0x0f99('0x28'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x29')]);router[_0x0f99('0x3')]('/campaigns',auth[_0x0f99('0x4')](),controller['campaigns']);router[_0x0f99('0x3')]('/fax/accounts',auth['isAuthenticated'](),controller['faxAccounts']);router[_0x0f99('0x3')](_0x0f99('0x2a'),auth['isAuthenticated'](),controller[_0x0f99('0x2b')]);router[_0x0f99('0x3')]('/mail/queues/waitinginteractions',auth[_0x0f99('0x4')](),controller[_0x0f99('0x2c')]);router[_0x0f99('0x3')](_0x0f99('0x2d'),auth['isAuthenticated'](),controller[_0x0f99('0x2e')]);router[_0x0f99('0x3')](_0x0f99('0x2f'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x30')]);router[_0x0f99('0x3')]('/sms/queues/waitinginteractions',auth[_0x0f99('0x4')](),controller[_0x0f99('0x31')]);router[_0x0f99('0x3')]('/whatsapp/queues/waitinginteractions',auth[_0x0f99('0x4')](),controller[_0x0f99('0x32')]);router['get'](_0x0f99('0x33'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x34')]);router['post'](_0x0f99('0x35'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x36')](_0x0f99('0x37')));router[_0x0f99('0x3')]('/mail/queues/:id',auth['isAuthenticated'](),controller[_0x0f99('0x38')]);router['post'](_0x0f99('0x39'),auth['isAuthenticated'](),controller[_0x0f99('0x36')](_0x0f99('0x3a')));router[_0x0f99('0x3')](_0x0f99('0x3b'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x3c')]);router['post']('/fax/queues/:id/notify',auth[_0x0f99('0x4')](),controller[_0x0f99('0x36')](_0x0f99('0x3d')));router[_0x0f99('0x3')](_0x0f99('0x3e'),auth[_0x0f99('0x4')](),controller['showFaxQueues']);router[_0x0f99('0x3f')](_0x0f99('0x40'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x36')](_0x0f99('0x41')));router[_0x0f99('0x3')]('/openchannel/queues/:id',auth['isAuthenticated'](),controller['showOpenchannelQueues']);router[_0x0f99('0x3f')](_0x0f99('0x42'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x36')](_0x0f99('0x43')));router[_0x0f99('0x3f')](_0x0f99('0x44'),auth[_0x0f99('0x4')](),controller['queueNotify']('whatsapp'));router[_0x0f99('0x3')](_0x0f99('0x45'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x46')]);router[_0x0f99('0x3')]('/whatsapp/queues/:id',auth[_0x0f99('0x4')](),controller[_0x0f99('0x47')]);router[_0x0f99('0x3f')](_0x0f99('0x48'),auth[_0x0f99('0x4')](),controller[_0x0f99('0x49')]);module[_0x0f99('0x4a')]=router;
\ No newline at end of file