Built motion from commit ae138b72.|2.6.28
[motion2.git] / server / api / rpc / index.js
index 3f8d5db..78d75b0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5ff9=['/mail/queues/:id','showMailQueues','/chat/queues/:id/notify','chat','/chat/queues/:id','/fax/queues/:id/notify','/fax/queues/:id','/openchannel/queues/:id/notify','openchannel','/openchannel/queues/:id','/sms/queues/:id/notify','sms','/whatsapp/queues/:id/notify','/sms/queues/:id','showSmsQueues','/whatsapp/queues/:id','showWhatsappQueues','/agents/:id/notify','agentNotify','exports','util','path','../../components/auth/service','get','/voice/channels','isAuthenticated','voiceChannelMixMonitor','/voice/channels/:uniqueid/stopmixmonitor','/voice/queues','voiceQueues','/chat/queues','/mail/queues','mailQueues','/mail/accounts','openchannelQueues','/sms/queues','smsQueues','/whatsapp/queues','whatsappQueues','/fax/queues','faxQueues','/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','/outbound','outbound','/outbound/channels','outboundChannels','/agents','agentCapacity','/telephones','/trunks','trunks','/campaigns','/fax/accounts','faxAccounts','chatQueuesWaitingInteractions','/mail/queues/waitinginteractions','mailQueuesWaitingInteractions','/openchannel/queues/waitinginteractions','/openchannel/queues/:id/waitinginteractions','openchannelQueuesIdWaitingInteractions','/sms/queues/waitinginteractions','smsQueuesWaitingInteractions','/whatsapp/queues/waitinginteractions','/fax/queues/waitinginteractions','faxQueuesWaitingInteractions','post','queueNotify','mail'];(function(_0x181dc3,_0x427d8f){var _0x3141af=function(_0x555f86){while(--_0x555f86){_0x181dc3['push'](_0x181dc3['shift']());}};_0x3141af(++_0x427d8f);}(_0x5ff9,0xb4));var _0x95ff=function(_0x44dba1,_0x270ad5){_0x44dba1=_0x44dba1-0x0;var _0x2fbd3f=_0x5ff9[_0x44dba1];return _0x2fbd3f;};'use strict';var multer=require('multer');var util=require(_0x95ff('0x0'));var path=require(_0x95ff('0x1'));var express=require('express');var router=express['Router']();var auth=require(_0x95ff('0x2'));var controller=require('./rpc.controller');router[_0x95ff('0x3')](_0x95ff('0x4'),auth[_0x95ff('0x5')](),controller['voiceChannels']);router[_0x95ff('0x3')]('/voice/channels/:uniqueid/mixmonitor',auth[_0x95ff('0x5')](),controller[_0x95ff('0x6')]);router[_0x95ff('0x3')](_0x95ff('0x7'),auth['isAuthenticated'](),controller['voiceChannelStopMixMonitor']);router[_0x95ff('0x3')](_0x95ff('0x8'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x9')]);router[_0x95ff('0x3')](_0x95ff('0xa'),auth[_0x95ff('0x5')](),controller['chatQueues']);router[_0x95ff('0x3')](_0x95ff('0xb'),auth[_0x95ff('0x5')](),controller[_0x95ff('0xc')]);router[_0x95ff('0x3')](_0x95ff('0xd'),auth[_0x95ff('0x5')](),controller['mailAccounts']);router[_0x95ff('0x3')]('/openchannel/queues',auth[_0x95ff('0x5')](),controller[_0x95ff('0xe')]);router['get'](_0x95ff('0xf'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x10')]);router[_0x95ff('0x3')](_0x95ff('0x11'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x12')]);router[_0x95ff('0x3')](_0x95ff('0x13'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x14')]);router[_0x95ff('0x3')](_0x95ff('0x15'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x16')]);router[_0x95ff('0x3')](_0x95ff('0x17'),auth['isAuthenticated'](),controller[_0x95ff('0x18')]);router[_0x95ff('0x3')](_0x95ff('0x19'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x1a')]);router[_0x95ff('0x3')](_0x95ff('0x1b'),auth['isAuthenticated'](),controller[_0x95ff('0x1c')]);router['get'](_0x95ff('0x1d'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x1e')]);router[_0x95ff('0x3')](_0x95ff('0x1f'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x20')]);router[_0x95ff('0x21')](_0x95ff('0x1f'),auth[_0x95ff('0x5')](),controller['updateVoiceQueue']);router[_0x95ff('0x3')](_0x95ff('0x22'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x23')]);router['get'](_0x95ff('0x24'),auth['isAuthenticated'](),controller[_0x95ff('0x25')]);router[_0x95ff('0x3')](_0x95ff('0x26'),auth[_0x95ff('0x5')](),controller['agents']);router['put']('/agents/:id/capacity',auth[_0x95ff('0x5')](),controller[_0x95ff('0x27')]);router['get'](_0x95ff('0x28'),auth[_0x95ff('0x5')](),controller['telephones']);router[_0x95ff('0x3')](_0x95ff('0x29'),auth['isAuthenticated'](),controller[_0x95ff('0x2a')]);router[_0x95ff('0x3')](_0x95ff('0x2b'),auth[_0x95ff('0x5')](),controller['campaigns']);router[_0x95ff('0x3')](_0x95ff('0x2c'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x2d')]);router['get']('/chat/queues/waitinginteractions',auth[_0x95ff('0x5')](),controller[_0x95ff('0x2e')]);router[_0x95ff('0x3')](_0x95ff('0x2f'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x30')]);router['get'](_0x95ff('0x31'),auth[_0x95ff('0x5')](),controller['openchannelQueuesWaitingInteractions']);router['get'](_0x95ff('0x32'),auth['isAuthenticated'](),controller[_0x95ff('0x33')]);router[_0x95ff('0x3')](_0x95ff('0x34'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x35')]);router[_0x95ff('0x3')](_0x95ff('0x36'),auth[_0x95ff('0x5')](),controller['whatsappQueuesWaitingInteractions']);router[_0x95ff('0x3')](_0x95ff('0x37'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x38')]);router[_0x95ff('0x39')]('/mail/queues/:id/notify',auth[_0x95ff('0x5')](),controller[_0x95ff('0x3a')](_0x95ff('0x3b')));router[_0x95ff('0x3')](_0x95ff('0x3c'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x3d')]);router[_0x95ff('0x39')](_0x95ff('0x3e'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x3a')](_0x95ff('0x3f')));router[_0x95ff('0x3')](_0x95ff('0x40'),auth[_0x95ff('0x5')](),controller['showChatQueues']);router[_0x95ff('0x39')](_0x95ff('0x41'),auth[_0x95ff('0x5')](),controller['queueNotify']('fax'));router[_0x95ff('0x3')](_0x95ff('0x42'),auth[_0x95ff('0x5')](),controller['showFaxQueues']);router[_0x95ff('0x39')](_0x95ff('0x43'),auth[_0x95ff('0x5')](),controller['queueNotify'](_0x95ff('0x44')));router[_0x95ff('0x3')](_0x95ff('0x45'),auth[_0x95ff('0x5')](),controller['showOpenchannelQueues']);router[_0x95ff('0x39')](_0x95ff('0x46'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x3a')](_0x95ff('0x47')));router['post'](_0x95ff('0x48'),auth['isAuthenticated'](),controller[_0x95ff('0x3a')]('whatsapp'));router[_0x95ff('0x3')](_0x95ff('0x49'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x4a')]);router[_0x95ff('0x3')](_0x95ff('0x4b'),auth[_0x95ff('0x5')](),controller[_0x95ff('0x4c')]);router[_0x95ff('0x39')](_0x95ff('0x4d'),auth['isAuthenticated'](),controller[_0x95ff('0x4e')]);module[_0x95ff('0x4f')]=router;
\ No newline at end of file
+var _0x85b2=['voiceQueues','chatQueues','mailQueues','/mail/accounts','mailAccounts','/openchannel/queues','openchannelQueues','/sms/queues','smsQueues','/whatsapp/queues','whatsappQueues','/fax/queues','faxQueues','/voice/queues/preview/:id','voiceQueuesChannels','/voice/queues/channels/:uniqueid','voiceQueuesChannel','/voice/queues/channels/:uniqueid/hangup','voiceQueuesChannelHangup','/voice/queues/channels/:uniqueid/redirect/:exten','/voice/queues/:id','showVoiceQueues','updateVoiceQueue','/outbound','outboundChannels','agents','/agents/:id/capacity','/trunks','trunks','/campaigns','/fax/accounts','faxAccounts','/chat/queues/waitinginteractions','chatQueuesWaitingInteractions','/mail/queues/waitinginteractions','mailQueuesWaitingInteractions','/openchannel/queues/waitinginteractions','openchannelQueuesWaitingInteractions','/openchannel/queues/:id/waitinginteractions','whatsappQueuesWaitingInteractions','post','/mail/queues/:id/notify','mail','/mail/queues/:id','showMailQueues','/chat/queues/:id/notify','queueNotify','chat','/chat/queues/:id','showChatQueues','/fax/queues/:id','showFaxQueues','/openchannel/queues/:id/notify','/openchannel/queues/:id','/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','express','Router','../../components/auth/service','./rpc.controller','/voice/channels','isAuthenticated','voiceChannels','get','/voice/channels/:uniqueid/mixmonitor','voiceChannelMixMonitor','voiceChannelStopMixMonitor','/voice/queues'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0x85b2,0x181));var _0x285b=function(_0x449871,_0x2f45ab){_0x449871=_0x449871-0x0;var _0xbd50ee=_0x85b2[_0x449871];return _0xbd50ee;};'use strict';var multer=require(_0x285b('0x0'));var util=require(_0x285b('0x1'));var path=require(_0x285b('0x2'));var express=require(_0x285b('0x3'));var router=express[_0x285b('0x4')]();var auth=require(_0x285b('0x5'));var controller=require(_0x285b('0x6'));router['get'](_0x285b('0x7'),auth[_0x285b('0x8')](),controller[_0x285b('0x9')]);router[_0x285b('0xa')](_0x285b('0xb'),auth[_0x285b('0x8')](),controller[_0x285b('0xc')]);router[_0x285b('0xa')]('/voice/channels/:uniqueid/stopmixmonitor',auth['isAuthenticated'](),controller[_0x285b('0xd')]);router[_0x285b('0xa')](_0x285b('0xe'),auth[_0x285b('0x8')](),controller[_0x285b('0xf')]);router['get']('/chat/queues',auth[_0x285b('0x8')](),controller[_0x285b('0x10')]);router[_0x285b('0xa')]('/mail/queues',auth[_0x285b('0x8')](),controller[_0x285b('0x11')]);router[_0x285b('0xa')](_0x285b('0x12'),auth[_0x285b('0x8')](),controller[_0x285b('0x13')]);router[_0x285b('0xa')](_0x285b('0x14'),auth[_0x285b('0x8')](),controller[_0x285b('0x15')]);router['get'](_0x285b('0x16'),auth['isAuthenticated'](),controller[_0x285b('0x17')]);router[_0x285b('0xa')](_0x285b('0x18'),auth['isAuthenticated'](),controller[_0x285b('0x19')]);router['get'](_0x285b('0x1a'),auth['isAuthenticated'](),controller[_0x285b('0x1b')]);router[_0x285b('0xa')](_0x285b('0x1c'),auth[_0x285b('0x8')](),controller['voiceQueuesPreview']);router[_0x285b('0xa')]('/voice/queues/channels',auth[_0x285b('0x8')](),controller[_0x285b('0x1d')]);router[_0x285b('0xa')](_0x285b('0x1e'),auth[_0x285b('0x8')](),controller[_0x285b('0x1f')]);router['get'](_0x285b('0x20'),auth[_0x285b('0x8')](),controller[_0x285b('0x21')]);router[_0x285b('0xa')](_0x285b('0x22'),auth[_0x285b('0x8')](),controller['voiceQueuesChannelRedirect']);router['get'](_0x285b('0x23'),auth[_0x285b('0x8')](),controller[_0x285b('0x24')]);router['put']('/voice/queues/:id',auth[_0x285b('0x8')](),controller[_0x285b('0x25')]);router[_0x285b('0xa')](_0x285b('0x26'),auth[_0x285b('0x8')](),controller['outbound']);router[_0x285b('0xa')]('/outbound/channels',auth[_0x285b('0x8')](),controller[_0x285b('0x27')]);router[_0x285b('0xa')]('/agents',auth[_0x285b('0x8')](),controller[_0x285b('0x28')]);router['put'](_0x285b('0x29'),auth['isAuthenticated'](),controller['agentCapacity']);router[_0x285b('0xa')]('/telephones',auth['isAuthenticated'](),controller['telephones']);router['get'](_0x285b('0x2a'),auth['isAuthenticated'](),controller[_0x285b('0x2b')]);router[_0x285b('0xa')](_0x285b('0x2c'),auth[_0x285b('0x8')](),controller['campaigns']);router['get'](_0x285b('0x2d'),auth[_0x285b('0x8')](),controller[_0x285b('0x2e')]);router['get'](_0x285b('0x2f'),auth[_0x285b('0x8')](),controller[_0x285b('0x30')]);router['get'](_0x285b('0x31'),auth[_0x285b('0x8')](),controller[_0x285b('0x32')]);router['get'](_0x285b('0x33'),auth[_0x285b('0x8')](),controller[_0x285b('0x34')]);router['get'](_0x285b('0x35'),auth[_0x285b('0x8')](),controller['openchannelQueuesIdWaitingInteractions']);router[_0x285b('0xa')]('/sms/queues/waitinginteractions',auth[_0x285b('0x8')](),controller['smsQueuesWaitingInteractions']);router[_0x285b('0xa')]('/whatsapp/queues/waitinginteractions',auth[_0x285b('0x8')](),controller[_0x285b('0x36')]);router[_0x285b('0xa')]('/fax/queues/waitinginteractions',auth[_0x285b('0x8')](),controller['faxQueuesWaitingInteractions']);router[_0x285b('0x37')](_0x285b('0x38'),auth['isAuthenticated'](),controller['queueNotify'](_0x285b('0x39')));router[_0x285b('0xa')](_0x285b('0x3a'),auth[_0x285b('0x8')](),controller[_0x285b('0x3b')]);router[_0x285b('0x37')](_0x285b('0x3c'),auth['isAuthenticated'](),controller[_0x285b('0x3d')](_0x285b('0x3e')));router['get'](_0x285b('0x3f'),auth[_0x285b('0x8')](),controller[_0x285b('0x40')]);router['post']('/fax/queues/:id/notify',auth[_0x285b('0x8')](),controller[_0x285b('0x3d')]('fax'));router[_0x285b('0xa')](_0x285b('0x41'),auth[_0x285b('0x8')](),controller[_0x285b('0x42')]);router[_0x285b('0x37')](_0x285b('0x43'),auth[_0x285b('0x8')](),controller['queueNotify']('openchannel'));router[_0x285b('0xa')](_0x285b('0x44'),auth[_0x285b('0x8')](),controller['showOpenchannelQueues']);router[_0x285b('0x37')](_0x285b('0x45'),auth[_0x285b('0x8')](),controller[_0x285b('0x3d')](_0x285b('0x46')));router[_0x285b('0x37')](_0x285b('0x47'),auth[_0x285b('0x8')](),controller[_0x285b('0x3d')](_0x285b('0x48')));router[_0x285b('0xa')](_0x285b('0x49'),auth[_0x285b('0x8')](),controller[_0x285b('0x4a')]);router[_0x285b('0xa')](_0x285b('0x4b'),auth['isAuthenticated'](),controller[_0x285b('0x4c')]);router['post'](_0x285b('0x4d'),auth[_0x285b('0x8')](),controller[_0x285b('0x4e')]);module[_0x285b('0x4f')]=router;
\ No newline at end of file