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