Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / rpc / index.js
index f90e11d..ab203bf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x976a=['/openchannel/queues/waitinginteractions','openchannelQueuesWaitingInteractions','/openchannel/queues/:id/waitinginteractions','openchannelQueuesIdWaitingInteractions','/sms/queues/waitinginteractions','smsQueuesWaitingInteractions','/whatsapp/queues/waitinginteractions','/fax/queues/waitinginteractions','/mail/queues/:id/notify','queueNotify','mail','showMailQueues','post','/chat/queues/:id','showChatQueues','/fax/queues/:id/notify','/fax/queues/:id','showFaxQueues','/openchannel/queues/:id/notify','openchannel','/sms/queues/:id/notify','/whatsapp/queues/:id/notify','whatsapp','/sms/queues/:id','/whatsapp/queues/:id','/agents/:id/notify','exports','util','path','express','../../components/auth/service','./rpc.controller','get','/voice/channels','isAuthenticated','voiceChannels','/voice/channels/:uniqueid/mixmonitor','/voice/channels/:uniqueid/stopmixmonitor','chatQueues','/mail/queues','mailQueues','/mail/accounts','mailAccounts','/openchannel/queues','openchannelQueues','/sms/queues','smsQueues','/whatsapp/queues','whatsappQueues','/fax/queues','faxQueues','voiceQueuesPreview','/voice/queues/channels','voiceQueuesChannels','/voice/queues/channels/:uniqueid/hangup','/voice/queues/channels/:uniqueid/redirect/:exten','/voice/queues/:id','put','updateVoiceQueue','/outbound','outbound','/outbound/channels','/agents','agents','/agents/:id/capacity','agentCapacity','/telephones','telephones','/trunks','trunks','/campaigns','campaigns','/fax/accounts','faxAccounts','chatQueuesWaitingInteractions','mailQueuesWaitingInteractions'];(function(_0x29c358,_0x245d59){var _0x5783e9=function(_0x44172b){while(--_0x44172b){_0x29c358['push'](_0x29c358['shift']());}};_0x5783e9(++_0x245d59);}(_0x976a,0xb3));var _0xa976=function(_0x391df0,_0x51b2dc){_0x391df0=_0x391df0-0x0;var _0x30bec6=_0x976a[_0x391df0];return _0x30bec6;};'use strict';var multer=require('multer');var util=require(_0xa976('0x0'));var path=require(_0xa976('0x1'));var express=require(_0xa976('0x2'));var router=express['Router']();var auth=require(_0xa976('0x3'));var controller=require(_0xa976('0x4'));router[_0xa976('0x5')](_0xa976('0x6'),auth[_0xa976('0x7')](),controller[_0xa976('0x8')]);router[_0xa976('0x5')](_0xa976('0x9'),auth[_0xa976('0x7')](),controller['voiceChannelMixMonitor']);router[_0xa976('0x5')](_0xa976('0xa'),auth['isAuthenticated'](),controller['voiceChannelStopMixMonitor']);router[_0xa976('0x5')]('/voice/queues',auth[_0xa976('0x7')](),controller['voiceQueues']);router['get']('/chat/queues',auth[_0xa976('0x7')](),controller[_0xa976('0xb')]);router[_0xa976('0x5')](_0xa976('0xc'),auth[_0xa976('0x7')](),controller[_0xa976('0xd')]);router[_0xa976('0x5')](_0xa976('0xe'),auth[_0xa976('0x7')](),controller[_0xa976('0xf')]);router[_0xa976('0x5')](_0xa976('0x10'),auth[_0xa976('0x7')](),controller[_0xa976('0x11')]);router[_0xa976('0x5')](_0xa976('0x12'),auth[_0xa976('0x7')](),controller[_0xa976('0x13')]);router['get'](_0xa976('0x14'),auth[_0xa976('0x7')](),controller[_0xa976('0x15')]);router[_0xa976('0x5')](_0xa976('0x16'),auth[_0xa976('0x7')](),controller[_0xa976('0x17')]);router[_0xa976('0x5')]('/voice/queues/preview/:id',auth[_0xa976('0x7')](),controller[_0xa976('0x18')]);router[_0xa976('0x5')](_0xa976('0x19'),auth[_0xa976('0x7')](),controller[_0xa976('0x1a')]);router[_0xa976('0x5')]('/voice/queues/channels/:uniqueid',auth[_0xa976('0x7')](),controller['voiceQueuesChannel']);router[_0xa976('0x5')](_0xa976('0x1b'),auth['isAuthenticated'](),controller['voiceQueuesChannelHangup']);router[_0xa976('0x5')](_0xa976('0x1c'),auth[_0xa976('0x7')](),controller['voiceQueuesChannelRedirect']);router[_0xa976('0x5')](_0xa976('0x1d'),auth['isAuthenticated'](),controller['showVoiceQueues']);router[_0xa976('0x1e')](_0xa976('0x1d'),auth[_0xa976('0x7')](),controller[_0xa976('0x1f')]);router[_0xa976('0x5')](_0xa976('0x20'),auth['isAuthenticated'](),controller[_0xa976('0x21')]);router['get'](_0xa976('0x22'),auth['isAuthenticated'](),controller['outboundChannels']);router[_0xa976('0x5')](_0xa976('0x23'),auth[_0xa976('0x7')](),controller[_0xa976('0x24')]);router[_0xa976('0x1e')](_0xa976('0x25'),auth[_0xa976('0x7')](),controller[_0xa976('0x26')]);router[_0xa976('0x5')](_0xa976('0x27'),auth[_0xa976('0x7')](),controller[_0xa976('0x28')]);router[_0xa976('0x5')](_0xa976('0x29'),auth[_0xa976('0x7')](),controller[_0xa976('0x2a')]);router[_0xa976('0x5')](_0xa976('0x2b'),auth[_0xa976('0x7')](),controller[_0xa976('0x2c')]);router[_0xa976('0x5')](_0xa976('0x2d'),auth[_0xa976('0x7')](),controller[_0xa976('0x2e')]);router[_0xa976('0x5')]('/chat/queues/waitinginteractions',auth[_0xa976('0x7')](),controller[_0xa976('0x2f')]);router['get']('/mail/queues/waitinginteractions',auth['isAuthenticated'](),controller[_0xa976('0x30')]);router[_0xa976('0x5')](_0xa976('0x31'),auth[_0xa976('0x7')](),controller[_0xa976('0x32')]);router['get'](_0xa976('0x33'),auth[_0xa976('0x7')](),controller[_0xa976('0x34')]);router['get'](_0xa976('0x35'),auth[_0xa976('0x7')](),controller[_0xa976('0x36')]);router[_0xa976('0x5')](_0xa976('0x37'),auth[_0xa976('0x7')](),controller['whatsappQueuesWaitingInteractions']);router[_0xa976('0x5')](_0xa976('0x38'),auth[_0xa976('0x7')](),controller['faxQueuesWaitingInteractions']);router['post'](_0xa976('0x39'),auth[_0xa976('0x7')](),controller[_0xa976('0x3a')](_0xa976('0x3b')));router['get']('/mail/queues/:id',auth['isAuthenticated'](),controller[_0xa976('0x3c')]);router[_0xa976('0x3d')]('/chat/queues/:id/notify',auth[_0xa976('0x7')](),controller[_0xa976('0x3a')]('chat'));router[_0xa976('0x5')](_0xa976('0x3e'),auth[_0xa976('0x7')](),controller[_0xa976('0x3f')]);router[_0xa976('0x3d')](_0xa976('0x40'),auth[_0xa976('0x7')](),controller[_0xa976('0x3a')]('fax'));router['get'](_0xa976('0x41'),auth[_0xa976('0x7')](),controller[_0xa976('0x42')]);router[_0xa976('0x3d')](_0xa976('0x43'),auth['isAuthenticated'](),controller[_0xa976('0x3a')](_0xa976('0x44')));router['get']('/openchannel/queues/:id',auth['isAuthenticated'](),controller['showOpenchannelQueues']);router[_0xa976('0x3d')](_0xa976('0x45'),auth[_0xa976('0x7')](),controller[_0xa976('0x3a')]('sms'));router[_0xa976('0x3d')](_0xa976('0x46'),auth[_0xa976('0x7')](),controller[_0xa976('0x3a')](_0xa976('0x47')));router['get'](_0xa976('0x48'),auth[_0xa976('0x7')](),controller['showSmsQueues']);router[_0xa976('0x5')](_0xa976('0x49'),auth[_0xa976('0x7')](),controller['showWhatsappQueues']);router[_0xa976('0x3d')](_0xa976('0x4a'),auth['isAuthenticated'](),controller['agentNotify']);module[_0xa976('0x4b')]=router;
\ No newline at end of file
+var _0x8fe9=['/agents/:id/capacity','agentCapacity','/telephones','telephones','/trunks','trunks','campaigns','/fax/accounts','/chat/queues/waitinginteractions','chatQueuesWaitingInteractions','/mail/queues/waitinginteractions','mailQueuesWaitingInteractions','/openchannel/queues/waitinginteractions','/openchannel/queues/:id/waitinginteractions','smsQueuesWaitingInteractions','/fax/queues/waitinginteractions','faxQueuesWaitingInteractions','post','/mail/queues/:id/notify','mail','/mail/queues/:id','showMailQueues','/chat/queues/:id/notify','queueNotify','/chat/queues/:id','showChatQueues','/fax/queues/:id/notify','showFaxQueues','/openchannel/queues/:id/notify','openchannel','/sms/queues/:id/notify','/whatsapp/queues/:id/notify','whatsapp','/sms/queues/:id','showSmsQueues','/whatsapp/queues/:id','/agents/:id/notify','agentNotify','exports','multer','util','path','express','Router','../../components/auth/service','./rpc.controller','get','/voice/channels','isAuthenticated','voiceChannels','/voice/channels/:uniqueid/mixmonitor','voiceChannelMixMonitor','/voice/channels/:uniqueid/stopmixmonitor','voiceChannelStopMixMonitor','/voice/queues','voiceQueues','/chat/queues','chatQueues','/mail/queues','mailQueues','/mail/accounts','mailAccounts','/openchannel/queues','openchannelQueues','/sms/queues','/whatsapp/queues','/fax/queues','faxQueues','/voice/queues/preview/:id','voiceQueuesPreview','voiceQueuesChannels','voiceQueuesChannel','/voice/queues/channels/:uniqueid/hangup','voiceQueuesChannelHangup','/voice/queues/channels/:uniqueid/redirect/:exten','voiceQueuesChannelRedirect','showVoiceQueues','put','updateVoiceQueue','/outbound','outbound','/outbound/channels','outboundChannels','/agents','agents'];(function(_0x57a205,_0x288fee){var _0x149a79=function(_0xb4b7bb){while(--_0xb4b7bb){_0x57a205['push'](_0x57a205['shift']());}};_0x149a79(++_0x288fee);}(_0x8fe9,0x17b));var _0x98fe=function(_0x45c262,_0x2e3ce5){_0x45c262=_0x45c262-0x0;var _0x4f2ba6=_0x8fe9[_0x45c262];return _0x4f2ba6;};'use strict';var multer=require(_0x98fe('0x0'));var util=require(_0x98fe('0x1'));var path=require(_0x98fe('0x2'));var express=require(_0x98fe('0x3'));var router=express[_0x98fe('0x4')]();var auth=require(_0x98fe('0x5'));var controller=require(_0x98fe('0x6'));router[_0x98fe('0x7')](_0x98fe('0x8'),auth[_0x98fe('0x9')](),controller[_0x98fe('0xa')]);router[_0x98fe('0x7')](_0x98fe('0xb'),auth[_0x98fe('0x9')](),controller[_0x98fe('0xc')]);router[_0x98fe('0x7')](_0x98fe('0xd'),auth[_0x98fe('0x9')](),controller[_0x98fe('0xe')]);router[_0x98fe('0x7')](_0x98fe('0xf'),auth['isAuthenticated'](),controller[_0x98fe('0x10')]);router[_0x98fe('0x7')](_0x98fe('0x11'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x12')]);router[_0x98fe('0x7')](_0x98fe('0x13'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x14')]);router[_0x98fe('0x7')](_0x98fe('0x15'),auth['isAuthenticated'](),controller[_0x98fe('0x16')]);router[_0x98fe('0x7')](_0x98fe('0x17'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x18')]);router[_0x98fe('0x7')](_0x98fe('0x19'),auth[_0x98fe('0x9')](),controller['smsQueues']);router[_0x98fe('0x7')](_0x98fe('0x1a'),auth['isAuthenticated'](),controller['whatsappQueues']);router[_0x98fe('0x7')](_0x98fe('0x1b'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x1c')]);router[_0x98fe('0x7')](_0x98fe('0x1d'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x1e')]);router[_0x98fe('0x7')]('/voice/queues/channels',auth[_0x98fe('0x9')](),controller[_0x98fe('0x1f')]);router['get']('/voice/queues/channels/:uniqueid',auth[_0x98fe('0x9')](),controller[_0x98fe('0x20')]);router['get'](_0x98fe('0x21'),auth['isAuthenticated'](),controller[_0x98fe('0x22')]);router[_0x98fe('0x7')](_0x98fe('0x23'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x24')]);router[_0x98fe('0x7')]('/voice/queues/:id',auth[_0x98fe('0x9')](),controller[_0x98fe('0x25')]);router[_0x98fe('0x26')]('/voice/queues/:id',auth[_0x98fe('0x9')](),controller[_0x98fe('0x27')]);router[_0x98fe('0x7')](_0x98fe('0x28'),auth['isAuthenticated'](),controller[_0x98fe('0x29')]);router[_0x98fe('0x7')](_0x98fe('0x2a'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x2b')]);router[_0x98fe('0x7')](_0x98fe('0x2c'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x2d')]);router[_0x98fe('0x26')](_0x98fe('0x2e'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x2f')]);router[_0x98fe('0x7')](_0x98fe('0x30'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x31')]);router['get'](_0x98fe('0x32'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x33')]);router[_0x98fe('0x7')]('/campaigns',auth[_0x98fe('0x9')](),controller[_0x98fe('0x34')]);router[_0x98fe('0x7')](_0x98fe('0x35'),auth[_0x98fe('0x9')](),controller['faxAccounts']);router[_0x98fe('0x7')](_0x98fe('0x36'),auth['isAuthenticated'](),controller[_0x98fe('0x37')]);router[_0x98fe('0x7')](_0x98fe('0x38'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x39')]);router[_0x98fe('0x7')](_0x98fe('0x3a'),auth[_0x98fe('0x9')](),controller['openchannelQueuesWaitingInteractions']);router['get'](_0x98fe('0x3b'),auth[_0x98fe('0x9')](),controller['openchannelQueuesIdWaitingInteractions']);router[_0x98fe('0x7')]('/sms/queues/waitinginteractions',auth[_0x98fe('0x9')](),controller[_0x98fe('0x3c')]);router[_0x98fe('0x7')]('/whatsapp/queues/waitinginteractions',auth[_0x98fe('0x9')](),controller['whatsappQueuesWaitingInteractions']);router[_0x98fe('0x7')](_0x98fe('0x3d'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x3e')]);router[_0x98fe('0x3f')](_0x98fe('0x40'),auth[_0x98fe('0x9')](),controller['queueNotify'](_0x98fe('0x41')));router[_0x98fe('0x7')](_0x98fe('0x42'),auth['isAuthenticated'](),controller[_0x98fe('0x43')]);router[_0x98fe('0x3f')](_0x98fe('0x44'),auth['isAuthenticated'](),controller[_0x98fe('0x45')]('chat'));router[_0x98fe('0x7')](_0x98fe('0x46'),auth['isAuthenticated'](),controller[_0x98fe('0x47')]);router[_0x98fe('0x3f')](_0x98fe('0x48'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x45')]('fax'));router[_0x98fe('0x7')]('/fax/queues/:id',auth[_0x98fe('0x9')](),controller[_0x98fe('0x49')]);router[_0x98fe('0x3f')](_0x98fe('0x4a'),auth['isAuthenticated'](),controller[_0x98fe('0x45')](_0x98fe('0x4b')));router['get']('/openchannel/queues/:id',auth[_0x98fe('0x9')](),controller['showOpenchannelQueues']);router[_0x98fe('0x3f')](_0x98fe('0x4c'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x45')]('sms'));router[_0x98fe('0x3f')](_0x98fe('0x4d'),auth['isAuthenticated'](),controller[_0x98fe('0x45')](_0x98fe('0x4e')));router['get'](_0x98fe('0x4f'),auth[_0x98fe('0x9')](),controller[_0x98fe('0x50')]);router[_0x98fe('0x7')](_0x98fe('0x51'),auth[_0x98fe('0x9')](),controller['showWhatsappQueues']);router['post'](_0x98fe('0x52'),auth['isAuthenticated'](),controller[_0x98fe('0x53')]);module[_0x98fe('0x54')]=router;
\ No newline at end of file