Built motion from commit 06a208af.|2.6.26
[motion2.git] / server / api / rpc / index.js
index 324d896..9282de9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x87a1=['/mail/queues/:id/notify','queueNotify','mail','showMailQueues','/chat/queues/:id/notify','chat','/chat/queues/:id','showChatQueues','/fax/queues/:id/notify','fax','showFaxQueues','/openchannel/queues/:id/notify','openchannel','/openchannel/queues/:id','showOpenchannelQueues','/sms/queues/:id/notify','sms','/whatsapp/queues/:id/notify','/sms/queues/:id','/whatsapp/queues/:id','showWhatsappQueues','path','express','../../components/auth/service','./rpc.controller','get','/voice/channels','voiceChannels','/voice/channels/:uniqueid/mixmonitor','isAuthenticated','voiceChannelMixMonitor','/voice/channels/:uniqueid/stopmixmonitor','/voice/queues','voiceQueues','chatQueues','/mail/queues','/openchannel/queues','/sms/queues','/whatsapp/queues','whatsappQueues','faxQueues','/voice/queues/preview/:id','voiceQueuesPreview','/voice/queues/channels','voiceQueuesChannels','/voice/queues/channels/:uniqueid','voiceQueuesChannel','/voice/queues/channels/:uniqueid/hangup','voiceQueuesChannelHangup','voiceQueuesChannelRedirect','/voice/queues/:id','showVoiceQueues','put','outboundChannels','/agents','agentCapacity','/telephones','telephones','trunks','/campaigns','faxAccounts','/chat/queues/waitinginteractions','chatQueuesWaitingInteractions','/mail/queues/waitinginteractions','/openchannel/queues/waitinginteractions','openchannelQueuesWaitingInteractions','/openchannel/queues/:id/waitinginteractions','/sms/queues/waitinginteractions','smsQueuesWaitingInteractions','/fax/queues/waitinginteractions','faxQueuesWaitingInteractions','post'];(function(_0x4abb10,_0x26897f){var _0x2494fe=function(_0x44c085){while(--_0x44c085){_0x4abb10['push'](_0x4abb10['shift']());}};_0x2494fe(++_0x26897f);}(_0x87a1,0x1c5));var _0x187a=function(_0x3ce3c,_0x319337){_0x3ce3c=_0x3ce3c-0x0;var _0x55a2c9=_0x87a1[_0x3ce3c];return _0x55a2c9;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x187a('0x0'));var express=require(_0x187a('0x1'));var router=express['Router']();var auth=require(_0x187a('0x2'));var controller=require(_0x187a('0x3'));router[_0x187a('0x4')](_0x187a('0x5'),auth['isAuthenticated'](),controller[_0x187a('0x6')]);router[_0x187a('0x4')](_0x187a('0x7'),auth[_0x187a('0x8')](),controller[_0x187a('0x9')]);router[_0x187a('0x4')](_0x187a('0xa'),auth['isAuthenticated'](),controller['voiceChannelStopMixMonitor']);router[_0x187a('0x4')](_0x187a('0xb'),auth[_0x187a('0x8')](),controller[_0x187a('0xc')]);router['get']('/chat/queues',auth[_0x187a('0x8')](),controller[_0x187a('0xd')]);router[_0x187a('0x4')](_0x187a('0xe'),auth['isAuthenticated'](),controller['mailQueues']);router['get']('/mail/accounts',auth[_0x187a('0x8')](),controller['mailAccounts']);router[_0x187a('0x4')](_0x187a('0xf'),auth[_0x187a('0x8')](),controller['openchannelQueues']);router[_0x187a('0x4')](_0x187a('0x10'),auth[_0x187a('0x8')](),controller['smsQueues']);router[_0x187a('0x4')](_0x187a('0x11'),auth[_0x187a('0x8')](),controller[_0x187a('0x12')]);router['get']('/fax/queues',auth[_0x187a('0x8')](),controller[_0x187a('0x13')]);router['get'](_0x187a('0x14'),auth['isAuthenticated'](),controller[_0x187a('0x15')]);router['get'](_0x187a('0x16'),auth[_0x187a('0x8')](),controller[_0x187a('0x17')]);router[_0x187a('0x4')](_0x187a('0x18'),auth[_0x187a('0x8')](),controller[_0x187a('0x19')]);router[_0x187a('0x4')](_0x187a('0x1a'),auth[_0x187a('0x8')](),controller[_0x187a('0x1b')]);router[_0x187a('0x4')]('/voice/queues/channels/:uniqueid/redirect/:exten',auth[_0x187a('0x8')](),controller[_0x187a('0x1c')]);router[_0x187a('0x4')](_0x187a('0x1d'),auth['isAuthenticated'](),controller[_0x187a('0x1e')]);router[_0x187a('0x1f')]('/voice/queues/:id',auth[_0x187a('0x8')](),controller['updateVoiceQueue']);router[_0x187a('0x4')]('/outbound',auth[_0x187a('0x8')](),controller['outbound']);router['get']('/outbound/channels',auth['isAuthenticated'](),controller[_0x187a('0x20')]);router[_0x187a('0x4')](_0x187a('0x21'),auth[_0x187a('0x8')](),controller['agents']);router[_0x187a('0x1f')]('/agents/:id/capacity',auth[_0x187a('0x8')](),controller[_0x187a('0x22')]);router[_0x187a('0x4')](_0x187a('0x23'),auth[_0x187a('0x8')](),controller[_0x187a('0x24')]);router[_0x187a('0x4')]('/trunks',auth[_0x187a('0x8')](),controller[_0x187a('0x25')]);router['get'](_0x187a('0x26'),auth[_0x187a('0x8')](),controller['campaigns']);router[_0x187a('0x4')]('/fax/accounts',auth[_0x187a('0x8')](),controller[_0x187a('0x27')]);router[_0x187a('0x4')](_0x187a('0x28'),auth[_0x187a('0x8')](),controller[_0x187a('0x29')]);router[_0x187a('0x4')](_0x187a('0x2a'),auth['isAuthenticated'](),controller['mailQueuesWaitingInteractions']);router[_0x187a('0x4')](_0x187a('0x2b'),auth[_0x187a('0x8')](),controller[_0x187a('0x2c')]);router[_0x187a('0x4')](_0x187a('0x2d'),auth['isAuthenticated'](),controller['openchannelQueuesIdWaitingInteractions']);router[_0x187a('0x4')](_0x187a('0x2e'),auth[_0x187a('0x8')](),controller[_0x187a('0x2f')]);router['get']('/whatsapp/queues/waitinginteractions',auth[_0x187a('0x8')](),controller['whatsappQueuesWaitingInteractions']);router['get'](_0x187a('0x30'),auth['isAuthenticated'](),controller[_0x187a('0x31')]);router[_0x187a('0x32')](_0x187a('0x33'),auth[_0x187a('0x8')](),controller[_0x187a('0x34')](_0x187a('0x35')));router[_0x187a('0x4')]('/mail/queues/:id',auth[_0x187a('0x8')](),controller[_0x187a('0x36')]);router['post'](_0x187a('0x37'),auth[_0x187a('0x8')](),controller[_0x187a('0x34')](_0x187a('0x38')));router[_0x187a('0x4')](_0x187a('0x39'),auth[_0x187a('0x8')](),controller[_0x187a('0x3a')]);router['post'](_0x187a('0x3b'),auth['isAuthenticated'](),controller['queueNotify'](_0x187a('0x3c')));router[_0x187a('0x4')]('/fax/queues/:id',auth[_0x187a('0x8')](),controller[_0x187a('0x3d')]);router[_0x187a('0x32')](_0x187a('0x3e'),auth[_0x187a('0x8')](),controller[_0x187a('0x34')](_0x187a('0x3f')));router['get'](_0x187a('0x40'),auth[_0x187a('0x8')](),controller[_0x187a('0x41')]);router[_0x187a('0x32')](_0x187a('0x42'),auth['isAuthenticated'](),controller[_0x187a('0x34')](_0x187a('0x43')));router['post'](_0x187a('0x44'),auth['isAuthenticated'](),controller[_0x187a('0x34')]('whatsapp'));router['get'](_0x187a('0x45'),auth[_0x187a('0x8')](),controller['showSmsQueues']);router[_0x187a('0x4')](_0x187a('0x46'),auth[_0x187a('0x8')](),controller[_0x187a('0x47')]);router[_0x187a('0x32')]('/agents/:id/notify',auth[_0x187a('0x8')](),controller['agentNotify']);module['exports']=router;
\ No newline at end of file
+var _0xba41=['/voice/channels','voiceChannels','/voice/channels/:uniqueid/mixmonitor','isAuthenticated','voiceChannelMixMonitor','/voice/channels/:uniqueid/stopmixmonitor','voiceChannelStopMixMonitor','/voice/queues','chatQueues','/mail/queues','mailQueues','/mail/accounts','/openchannel/queues','/sms/queues','smsQueues','/whatsapp/queues','/fax/queues','faxQueues','voiceQueuesPreview','voiceQueuesChannels','/voice/queues/channels/:uniqueid','/voice/queues/:id','showVoiceQueues','/outbound','outbound','/outbound/channels','outboundChannels','/agents','/agents/:id/capacity','agentCapacity','/trunks','trunks','/campaigns','/fax/accounts','faxAccounts','/chat/queues/waitinginteractions','chatQueuesWaitingInteractions','/mail/queues/waitinginteractions','mailQueuesWaitingInteractions','/openchannel/queues/waitinginteractions','openchannelQueuesWaitingInteractions','/openchannel/queues/:id/waitinginteractions','/sms/queues/waitinginteractions','smsQueuesWaitingInteractions','/whatsapp/queues/waitinginteractions','/fax/queues/waitinginteractions','post','/mail/queues/:id/notify','queueNotify','/mail/queues/:id','chat','/chat/queues/:id','showChatQueues','fax','/openchannel/queues/:id/notify','openchannel','/openchannel/queues/:id','showOpenchannelQueues','/sms/queues/:id/notify','/whatsapp/queues/:id/notify','/sms/queues/:id','showWhatsappQueues','agentNotify','exports','util','path','Router','./rpc.controller','get'];(function(_0x3e18b7,_0x1e6f07){var _0x5ab2e7=function(_0x21bec4){while(--_0x21bec4){_0x3e18b7['push'](_0x3e18b7['shift']());}};_0x5ab2e7(++_0x1e6f07);}(_0xba41,0x154));var _0x1ba4=function(_0x35885a,_0x42fed7){_0x35885a=_0x35885a-0x0;var _0xe86249=_0xba41[_0x35885a];return _0xe86249;};'use strict';var multer=require('multer');var util=require(_0x1ba4('0x0'));var path=require(_0x1ba4('0x1'));var express=require('express');var router=express[_0x1ba4('0x2')]();var auth=require('../../components/auth/service');var controller=require(_0x1ba4('0x3'));router[_0x1ba4('0x4')](_0x1ba4('0x5'),auth['isAuthenticated'](),controller[_0x1ba4('0x6')]);router[_0x1ba4('0x4')](_0x1ba4('0x7'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x9')]);router[_0x1ba4('0x4')](_0x1ba4('0xa'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0xb')]);router['get'](_0x1ba4('0xc'),auth[_0x1ba4('0x8')](),controller['voiceQueues']);router['get']('/chat/queues',auth['isAuthenticated'](),controller[_0x1ba4('0xd')]);router[_0x1ba4('0x4')](_0x1ba4('0xe'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0xf')]);router['get'](_0x1ba4('0x10'),auth[_0x1ba4('0x8')](),controller['mailAccounts']);router[_0x1ba4('0x4')](_0x1ba4('0x11'),auth['isAuthenticated'](),controller['openchannelQueues']);router[_0x1ba4('0x4')](_0x1ba4('0x12'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x13')]);router['get'](_0x1ba4('0x14'),auth['isAuthenticated'](),controller['whatsappQueues']);router[_0x1ba4('0x4')](_0x1ba4('0x15'),auth['isAuthenticated'](),controller[_0x1ba4('0x16')]);router['get']('/voice/queues/preview/:id',auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x17')]);router[_0x1ba4('0x4')]('/voice/queues/channels',auth['isAuthenticated'](),controller[_0x1ba4('0x18')]);router[_0x1ba4('0x4')](_0x1ba4('0x19'),auth[_0x1ba4('0x8')](),controller['voiceQueuesChannel']);router['get']('/voice/queues/channels/:uniqueid/hangup',auth[_0x1ba4('0x8')](),controller['voiceQueuesChannelHangup']);router[_0x1ba4('0x4')]('/voice/queues/channels/:uniqueid/redirect/:exten',auth[_0x1ba4('0x8')](),controller['voiceQueuesChannelRedirect']);router[_0x1ba4('0x4')](_0x1ba4('0x1a'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x1b')]);router['put']('/voice/queues/:id',auth['isAuthenticated'](),controller['updateVoiceQueue']);router['get'](_0x1ba4('0x1c'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x1d')]);router['get'](_0x1ba4('0x1e'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x1f')]);router[_0x1ba4('0x4')](_0x1ba4('0x20'),auth[_0x1ba4('0x8')](),controller['agents']);router['put'](_0x1ba4('0x21'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x22')]);router[_0x1ba4('0x4')]('/telephones',auth[_0x1ba4('0x8')](),controller['telephones']);router[_0x1ba4('0x4')](_0x1ba4('0x23'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x24')]);router[_0x1ba4('0x4')](_0x1ba4('0x25'),auth['isAuthenticated'](),controller['campaigns']);router[_0x1ba4('0x4')](_0x1ba4('0x26'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x27')]);router[_0x1ba4('0x4')](_0x1ba4('0x28'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x29')]);router['get'](_0x1ba4('0x2a'),auth['isAuthenticated'](),controller[_0x1ba4('0x2b')]);router[_0x1ba4('0x4')](_0x1ba4('0x2c'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x2d')]);router[_0x1ba4('0x4')](_0x1ba4('0x2e'),auth[_0x1ba4('0x8')](),controller['openchannelQueuesIdWaitingInteractions']);router[_0x1ba4('0x4')](_0x1ba4('0x2f'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x30')]);router['get'](_0x1ba4('0x31'),auth[_0x1ba4('0x8')](),controller['whatsappQueuesWaitingInteractions']);router['get'](_0x1ba4('0x32'),auth['isAuthenticated'](),controller['faxQueuesWaitingInteractions']);router[_0x1ba4('0x33')](_0x1ba4('0x34'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x35')]('mail'));router[_0x1ba4('0x4')](_0x1ba4('0x36'),auth[_0x1ba4('0x8')](),controller['showMailQueues']);router[_0x1ba4('0x33')]('/chat/queues/:id/notify',auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x35')](_0x1ba4('0x37')));router[_0x1ba4('0x4')](_0x1ba4('0x38'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x39')]);router[_0x1ba4('0x33')]('/fax/queues/:id/notify',auth[_0x1ba4('0x8')](),controller['queueNotify'](_0x1ba4('0x3a')));router[_0x1ba4('0x4')]('/fax/queues/:id',auth['isAuthenticated'](),controller['showFaxQueues']);router[_0x1ba4('0x33')](_0x1ba4('0x3b'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x35')](_0x1ba4('0x3c')));router[_0x1ba4('0x4')](_0x1ba4('0x3d'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x3e')]);router[_0x1ba4('0x33')](_0x1ba4('0x3f'),auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x35')]('sms'));router['post'](_0x1ba4('0x40'),auth[_0x1ba4('0x8')](),controller['queueNotify']('whatsapp'));router[_0x1ba4('0x4')](_0x1ba4('0x41'),auth['isAuthenticated'](),controller['showSmsQueues']);router[_0x1ba4('0x4')]('/whatsapp/queues/:id',auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x42')]);router[_0x1ba4('0x33')]('/agents/:id/notify',auth[_0x1ba4('0x8')](),controller[_0x1ba4('0x43')]);module[_0x1ba4('0x44')]=router;
\ No newline at end of file