Built motion from commit 192134f6.|2.6.25
[motion2.git] / server / api / rpc / index.js
index 865579f..ee1a4c4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe2ae=['/mail/queues/:id/notify','queueNotify','mail','showMailQueues','/chat/queues/:id/notify','chat','/chat/queues/:id','showChatQueues','/fax/queues/:id/notify','fax','/fax/queues/:id','/openchannel/queues/:id','showOpenchannelQueues','/sms/queues/:id/notify','/whatsapp/queues/:id/notify','/sms/queues/:id','showSmsQueues','/whatsapp/queues/:id','showWhatsappQueues','/agents/:id/notify','agentNotify','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','/openchannel/queues','/sms/queues','smsQueues','/whatsapp/queues','/fax/queues','voiceQueuesPreview','/voice/queues/channels','voiceQueuesChannels','voiceQueuesChannel','/voice/queues/channels/:uniqueid/hangup','voiceQueuesChannelHangup','/voice/queues/channels/:uniqueid/redirect/:exten','showVoiceQueues','/voice/queues/:id','updateVoiceQueue','/outbound','outbound','outboundChannels','/agents','agents','put','agentCapacity','/telephones','/trunks','trunks','/campaigns','campaigns','/fax/accounts','/chat/queues/waitinginteractions','mailQueuesWaitingInteractions','/openchannel/queues/:id/waitinginteractions','openchannelQueuesIdWaitingInteractions','/sms/queues/waitinginteractions','smsQueuesWaitingInteractions','/fax/queues/waitinginteractions','post'];(function(_0x1739ec,_0x297362){var _0x5cf0ca=function(_0x31b931){while(--_0x31b931){_0x1739ec['push'](_0x1739ec['shift']());}};_0x5cf0ca(++_0x297362);}(_0xe2ae,0x139));var _0xee2a=function(_0x8b73b9,_0x1cb6ee){_0x8b73b9=_0x8b73b9-0x0;var _0x22a0af=_0xe2ae[_0x8b73b9];return _0x22a0af;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var express=require(_0xee2a('0x0'));var router=express[_0xee2a('0x1')]();var auth=require(_0xee2a('0x2'));var controller=require(_0xee2a('0x3'));router[_0xee2a('0x4')](_0xee2a('0x5'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x7')]);router['get'](_0xee2a('0x8'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x9')]);router[_0xee2a('0x4')](_0xee2a('0xa'),auth['isAuthenticated'](),controller[_0xee2a('0xb')]);router[_0xee2a('0x4')](_0xee2a('0xc'),auth[_0xee2a('0x6')](),controller[_0xee2a('0xd')]);router[_0xee2a('0x4')](_0xee2a('0xe'),auth[_0xee2a('0x6')](),controller[_0xee2a('0xf')]);router[_0xee2a('0x4')]('/mail/queues',auth['isAuthenticated'](),controller['mailQueues']);router[_0xee2a('0x4')]('/mail/accounts',auth['isAuthenticated'](),controller['mailAccounts']);router[_0xee2a('0x4')](_0xee2a('0x10'),auth['isAuthenticated'](),controller['openchannelQueues']);router[_0xee2a('0x4')](_0xee2a('0x11'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x12')]);router[_0xee2a('0x4')](_0xee2a('0x13'),auth['isAuthenticated'](),controller['whatsappQueues']);router[_0xee2a('0x4')](_0xee2a('0x14'),auth[_0xee2a('0x6')](),controller['faxQueues']);router[_0xee2a('0x4')]('/voice/queues/preview/:id',auth[_0xee2a('0x6')](),controller[_0xee2a('0x15')]);router[_0xee2a('0x4')](_0xee2a('0x16'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x17')]);router['get']('/voice/queues/channels/:uniqueid',auth['isAuthenticated'](),controller[_0xee2a('0x18')]);router[_0xee2a('0x4')](_0xee2a('0x19'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x1a')]);router['get'](_0xee2a('0x1b'),auth[_0xee2a('0x6')](),controller['voiceQueuesChannelRedirect']);router[_0xee2a('0x4')]('/voice/queues/:id',auth[_0xee2a('0x6')](),controller[_0xee2a('0x1c')]);router['put'](_0xee2a('0x1d'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x1e')]);router[_0xee2a('0x4')](_0xee2a('0x1f'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x20')]);router[_0xee2a('0x4')]('/outbound/channels',auth[_0xee2a('0x6')](),controller[_0xee2a('0x21')]);router[_0xee2a('0x4')](_0xee2a('0x22'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x23')]);router[_0xee2a('0x24')]('/agents/:id/capacity',auth[_0xee2a('0x6')](),controller[_0xee2a('0x25')]);router[_0xee2a('0x4')](_0xee2a('0x26'),auth[_0xee2a('0x6')](),controller['telephones']);router['get'](_0xee2a('0x27'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x28')]);router[_0xee2a('0x4')](_0xee2a('0x29'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x2a')]);router['get'](_0xee2a('0x2b'),auth[_0xee2a('0x6')](),controller['faxAccounts']);router[_0xee2a('0x4')](_0xee2a('0x2c'),auth[_0xee2a('0x6')](),controller['chatQueuesWaitingInteractions']);router[_0xee2a('0x4')]('/mail/queues/waitinginteractions',auth[_0xee2a('0x6')](),controller[_0xee2a('0x2d')]);router[_0xee2a('0x4')]('/openchannel/queues/waitinginteractions',auth[_0xee2a('0x6')](),controller['openchannelQueuesWaitingInteractions']);router['get'](_0xee2a('0x2e'),auth['isAuthenticated'](),controller[_0xee2a('0x2f')]);router[_0xee2a('0x4')](_0xee2a('0x30'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x31')]);router['get']('/whatsapp/queues/waitinginteractions',auth['isAuthenticated'](),controller['whatsappQueuesWaitingInteractions']);router['get'](_0xee2a('0x32'),auth[_0xee2a('0x6')](),controller['faxQueuesWaitingInteractions']);router[_0xee2a('0x33')](_0xee2a('0x34'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x35')](_0xee2a('0x36')));router[_0xee2a('0x4')]('/mail/queues/:id',auth[_0xee2a('0x6')](),controller[_0xee2a('0x37')]);router[_0xee2a('0x33')](_0xee2a('0x38'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x35')](_0xee2a('0x39')));router[_0xee2a('0x4')](_0xee2a('0x3a'),auth['isAuthenticated'](),controller[_0xee2a('0x3b')]);router[_0xee2a('0x33')](_0xee2a('0x3c'),auth['isAuthenticated'](),controller[_0xee2a('0x35')](_0xee2a('0x3d')));router['get'](_0xee2a('0x3e'),auth[_0xee2a('0x6')](),controller['showFaxQueues']);router[_0xee2a('0x33')]('/openchannel/queues/:id/notify',auth[_0xee2a('0x6')](),controller[_0xee2a('0x35')]('openchannel'));router[_0xee2a('0x4')](_0xee2a('0x3f'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x40')]);router[_0xee2a('0x33')](_0xee2a('0x41'),auth['isAuthenticated'](),controller[_0xee2a('0x35')]('sms'));router[_0xee2a('0x33')](_0xee2a('0x42'),auth['isAuthenticated'](),controller[_0xee2a('0x35')]('whatsapp'));router[_0xee2a('0x4')](_0xee2a('0x43'),auth['isAuthenticated'](),controller[_0xee2a('0x44')]);router[_0xee2a('0x4')](_0xee2a('0x45'),auth[_0xee2a('0x6')](),controller[_0xee2a('0x46')]);router[_0xee2a('0x33')](_0xee2a('0x47'),auth['isAuthenticated'](),controller[_0xee2a('0x48')]);module['exports']=router;
\ No newline at end of file
+var _0x9762=['voiceQueuesChannels','/voice/queues/channels/:uniqueid','voiceQueuesChannel','voiceQueuesChannelHangup','/voice/queues/channels/:uniqueid/redirect/:exten','voiceQueuesChannelRedirect','showVoiceQueues','put','/voice/queues/:id','updateVoiceQueue','/outbound','outbound','outboundChannels','/agents','agents','/agents/:id/capacity','agentCapacity','/telephones','telephones','/trunks','trunks','/campaigns','campaigns','/fax/accounts','/chat/queues/waitinginteractions','chatQueuesWaitingInteractions','/openchannel/queues/waitinginteractions','/openchannel/queues/:id/waitinginteractions','openchannelQueuesIdWaitingInteractions','smsQueuesWaitingInteractions','whatsappQueuesWaitingInteractions','/fax/queues/waitinginteractions','faxQueuesWaitingInteractions','post','/mail/queues/:id/notify','queueNotify','mail','/mail/queues/:id','showMailQueues','/chat/queues/:id/notify','chat','/chat/queues/:id','/fax/queues/:id/notify','fax','/fax/queues/:id','showFaxQueues','/openchannel/queues/:id/notify','/openchannel/queues/:id','sms','/whatsapp/queues/:id/notify','whatsapp','/sms/queues/:id','showSmsQueues','/whatsapp/queues/:id','showWhatsappQueues','/agents/:id/notify','agentNotify','exports','multer','util','path','express','../../components/auth/service','./rpc.controller','get','/voice/channels','isAuthenticated','voiceChannels','/voice/channels/:uniqueid/mixmonitor','voiceChannelMixMonitor','/voice/channels/:uniqueid/stopmixmonitor','voiceChannelStopMixMonitor','/voice/queues','/chat/queues','chatQueues','/mail/queues','mailQueues','mailAccounts','/openchannel/queues','openchannelQueues','smsQueues','whatsappQueues','/fax/queues','faxQueues','/voice/queues/preview/:id','voiceQueuesPreview','/voice/queues/channels'];(function(_0x183b18,_0x5ec15c){var _0x4c5710=function(_0x505fd0){while(--_0x505fd0){_0x183b18['push'](_0x183b18['shift']());}};_0x4c5710(++_0x5ec15c);}(_0x9762,0x13f));var _0x2976=function(_0x7a68b,_0x964789){_0x7a68b=_0x7a68b-0x0;var _0x110d37=_0x9762[_0x7a68b];return _0x110d37;};'use strict';var multer=require(_0x2976('0x0'));var util=require(_0x2976('0x1'));var path=require(_0x2976('0x2'));var express=require(_0x2976('0x3'));var router=express['Router']();var auth=require(_0x2976('0x4'));var controller=require(_0x2976('0x5'));router[_0x2976('0x6')](_0x2976('0x7'),auth[_0x2976('0x8')](),controller[_0x2976('0x9')]);router[_0x2976('0x6')](_0x2976('0xa'),auth[_0x2976('0x8')](),controller[_0x2976('0xb')]);router[_0x2976('0x6')](_0x2976('0xc'),auth[_0x2976('0x8')](),controller[_0x2976('0xd')]);router[_0x2976('0x6')](_0x2976('0xe'),auth[_0x2976('0x8')](),controller['voiceQueues']);router[_0x2976('0x6')](_0x2976('0xf'),auth[_0x2976('0x8')](),controller[_0x2976('0x10')]);router[_0x2976('0x6')](_0x2976('0x11'),auth[_0x2976('0x8')](),controller[_0x2976('0x12')]);router['get']('/mail/accounts',auth[_0x2976('0x8')](),controller[_0x2976('0x13')]);router[_0x2976('0x6')](_0x2976('0x14'),auth[_0x2976('0x8')](),controller[_0x2976('0x15')]);router[_0x2976('0x6')]('/sms/queues',auth[_0x2976('0x8')](),controller[_0x2976('0x16')]);router['get']('/whatsapp/queues',auth[_0x2976('0x8')](),controller[_0x2976('0x17')]);router[_0x2976('0x6')](_0x2976('0x18'),auth[_0x2976('0x8')](),controller[_0x2976('0x19')]);router[_0x2976('0x6')](_0x2976('0x1a'),auth[_0x2976('0x8')](),controller[_0x2976('0x1b')]);router[_0x2976('0x6')](_0x2976('0x1c'),auth['isAuthenticated'](),controller[_0x2976('0x1d')]);router['get'](_0x2976('0x1e'),auth[_0x2976('0x8')](),controller[_0x2976('0x1f')]);router['get']('/voice/queues/channels/:uniqueid/hangup',auth[_0x2976('0x8')](),controller[_0x2976('0x20')]);router[_0x2976('0x6')](_0x2976('0x21'),auth[_0x2976('0x8')](),controller[_0x2976('0x22')]);router[_0x2976('0x6')]('/voice/queues/:id',auth[_0x2976('0x8')](),controller[_0x2976('0x23')]);router[_0x2976('0x24')](_0x2976('0x25'),auth['isAuthenticated'](),controller[_0x2976('0x26')]);router['get'](_0x2976('0x27'),auth['isAuthenticated'](),controller[_0x2976('0x28')]);router['get']('/outbound/channels',auth['isAuthenticated'](),controller[_0x2976('0x29')]);router['get'](_0x2976('0x2a'),auth['isAuthenticated'](),controller[_0x2976('0x2b')]);router[_0x2976('0x24')](_0x2976('0x2c'),auth[_0x2976('0x8')](),controller[_0x2976('0x2d')]);router[_0x2976('0x6')](_0x2976('0x2e'),auth[_0x2976('0x8')](),controller[_0x2976('0x2f')]);router[_0x2976('0x6')](_0x2976('0x30'),auth[_0x2976('0x8')](),controller[_0x2976('0x31')]);router['get'](_0x2976('0x32'),auth[_0x2976('0x8')](),controller[_0x2976('0x33')]);router[_0x2976('0x6')](_0x2976('0x34'),auth[_0x2976('0x8')](),controller['faxAccounts']);router[_0x2976('0x6')](_0x2976('0x35'),auth['isAuthenticated'](),controller[_0x2976('0x36')]);router[_0x2976('0x6')]('/mail/queues/waitinginteractions',auth[_0x2976('0x8')](),controller['mailQueuesWaitingInteractions']);router[_0x2976('0x6')](_0x2976('0x37'),auth[_0x2976('0x8')](),controller['openchannelQueuesWaitingInteractions']);router[_0x2976('0x6')](_0x2976('0x38'),auth[_0x2976('0x8')](),controller[_0x2976('0x39')]);router[_0x2976('0x6')]('/sms/queues/waitinginteractions',auth[_0x2976('0x8')](),controller[_0x2976('0x3a')]);router['get']('/whatsapp/queues/waitinginteractions',auth[_0x2976('0x8')](),controller[_0x2976('0x3b')]);router['get'](_0x2976('0x3c'),auth['isAuthenticated'](),controller[_0x2976('0x3d')]);router[_0x2976('0x3e')](_0x2976('0x3f'),auth[_0x2976('0x8')](),controller[_0x2976('0x40')](_0x2976('0x41')));router['get'](_0x2976('0x42'),auth[_0x2976('0x8')](),controller[_0x2976('0x43')]);router['post'](_0x2976('0x44'),auth[_0x2976('0x8')](),controller[_0x2976('0x40')](_0x2976('0x45')));router[_0x2976('0x6')](_0x2976('0x46'),auth['isAuthenticated'](),controller['showChatQueues']);router['post'](_0x2976('0x47'),auth[_0x2976('0x8')](),controller[_0x2976('0x40')](_0x2976('0x48')));router['get'](_0x2976('0x49'),auth['isAuthenticated'](),controller[_0x2976('0x4a')]);router[_0x2976('0x3e')](_0x2976('0x4b'),auth[_0x2976('0x8')](),controller[_0x2976('0x40')]('openchannel'));router['get'](_0x2976('0x4c'),auth[_0x2976('0x8')](),controller['showOpenchannelQueues']);router['post']('/sms/queues/:id/notify',auth[_0x2976('0x8')](),controller['queueNotify'](_0x2976('0x4d')));router[_0x2976('0x3e')](_0x2976('0x4e'),auth['isAuthenticated'](),controller[_0x2976('0x40')](_0x2976('0x4f')));router[_0x2976('0x6')](_0x2976('0x50'),auth[_0x2976('0x8')](),controller[_0x2976('0x51')]);router[_0x2976('0x6')](_0x2976('0x52'),auth[_0x2976('0x8')](),controller[_0x2976('0x53')]);router[_0x2976('0x3e')](_0x2976('0x54'),auth[_0x2976('0x8')](),controller[_0x2976('0x55')]);module[_0x2976('0x56')]=router;
\ No newline at end of file