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