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