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