Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / rpc / index.js
index ab203bf..5128282 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+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