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