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