Built motion from commit a8c4dd89.|2.6.33
[motion2.git] / server / api / rpc / index.js
index 2802dfc..b972f09 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0c55=['/agents','/agents/:id/capacity','agentCapacity','telephones','/campaigns','campaigns','faxAccounts','chatQueuesWaitingInteractions','/mail/queues/waitinginteractions','/openchannel/queues/waitinginteractions','openchannelQueuesWaitingInteractions','/openchannel/queues/:id/waitinginteractions','openchannelQueuesIdWaitingInteractions','/sms/queues/waitinginteractions','smsQueuesWaitingInteractions','whatsappQueuesWaitingInteractions','post','/mail/queues/:id/notify','queueNotify','mail','/mail/queues/:id','showMailQueues','chat','/chat/queues/:id','showChatQueues','/fax/queues/:id/notify','fax','/fax/queues/:id','showFaxQueues','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','path','Router','../../components/auth/service','./rpc.controller','get','/voice/channels','isAuthenticated','voiceChannels','/voice/channels/:uniqueid/mixmonitor','/voice/channels/:uniqueid/stopmixmonitor','/voice/queues','voiceQueues','/chat/queues','chatQueues','/mail/queues','mailQueues','mailAccounts','/openchannel/queues','openchannelQueues','/sms/queues','smsQueues','/whatsapp/queues','whatsappQueues','/fax/queues','faxQueues','/voice/queues/preview/:id','voiceQueuesPreview','voiceQueuesChannels','/voice/queues/channels/:uniqueid','voiceQueuesChannel','/voice/queues/channels/:uniqueid/hangup','voiceQueuesChannelHangup','/voice/queues/channels/:uniqueid/redirect/:exten','voiceQueuesChannelRedirect','/voice/queues/:id','updateVoiceQueue','outbound','/outbound/channels','outboundChannels'];(function(_0x2e4828,_0x9ebfd8){var _0x2e86c0=function(_0x461734){while(--_0x461734){_0x2e4828['push'](_0x2e4828['shift']());}};_0x2e86c0(++_0x9ebfd8);}(_0x0c55,0xd0));var _0x50c5=function(_0x18e7fb,_0x4b64b8){_0x18e7fb=_0x18e7fb-0x0;var _0x13a9cb=_0x0c55[_0x18e7fb];return _0x13a9cb;};'use strict';var multer=require(_0x50c5('0x0'));var util=require(_0x50c5('0x1'));var path=require(_0x50c5('0x2'));var express=require('express');var router=express[_0x50c5('0x3')]();var auth=require(_0x50c5('0x4'));var controller=require(_0x50c5('0x5'));router[_0x50c5('0x6')](_0x50c5('0x7'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x9')]);router[_0x50c5('0x6')](_0x50c5('0xa'),auth[_0x50c5('0x8')](),controller['voiceChannelMixMonitor']);router['get'](_0x50c5('0xb'),auth[_0x50c5('0x8')](),controller['voiceChannelStopMixMonitor']);router[_0x50c5('0x6')](_0x50c5('0xc'),auth['isAuthenticated'](),controller[_0x50c5('0xd')]);router[_0x50c5('0x6')](_0x50c5('0xe'),auth[_0x50c5('0x8')](),controller[_0x50c5('0xf')]);router[_0x50c5('0x6')](_0x50c5('0x10'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x11')]);router['get']('/mail/accounts',auth['isAuthenticated'](),controller[_0x50c5('0x12')]);router[_0x50c5('0x6')](_0x50c5('0x13'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x14')]);router[_0x50c5('0x6')](_0x50c5('0x15'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x16')]);router[_0x50c5('0x6')](_0x50c5('0x17'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x18')]);router['get'](_0x50c5('0x19'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x1a')]);router[_0x50c5('0x6')](_0x50c5('0x1b'),auth['isAuthenticated'](),controller[_0x50c5('0x1c')]);router[_0x50c5('0x6')]('/voice/queues/channels',auth[_0x50c5('0x8')](),controller[_0x50c5('0x1d')]);router['get'](_0x50c5('0x1e'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x1f')]);router[_0x50c5('0x6')](_0x50c5('0x20'),auth['isAuthenticated'](),controller[_0x50c5('0x21')]);router[_0x50c5('0x6')](_0x50c5('0x22'),auth['isAuthenticated'](),controller[_0x50c5('0x23')]);router['get'](_0x50c5('0x24'),auth[_0x50c5('0x8')](),controller['showVoiceQueues']);router['put']('/voice/queues/:id',auth[_0x50c5('0x8')](),controller[_0x50c5('0x25')]);router[_0x50c5('0x6')]('/outbound',auth[_0x50c5('0x8')](),controller[_0x50c5('0x26')]);router[_0x50c5('0x6')](_0x50c5('0x27'),auth['isAuthenticated'](),controller[_0x50c5('0x28')]);router[_0x50c5('0x6')](_0x50c5('0x29'),auth[_0x50c5('0x8')](),controller['agents']);router['put'](_0x50c5('0x2a'),auth['isAuthenticated'](),controller[_0x50c5('0x2b')]);router[_0x50c5('0x6')]('/telephones',auth[_0x50c5('0x8')](),controller[_0x50c5('0x2c')]);router[_0x50c5('0x6')]('/trunks',auth[_0x50c5('0x8')](),controller['trunks']);router[_0x50c5('0x6')](_0x50c5('0x2d'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x2e')]);router[_0x50c5('0x6')]('/fax/accounts',auth[_0x50c5('0x8')](),controller[_0x50c5('0x2f')]);router[_0x50c5('0x6')]('/chat/queues/waitinginteractions',auth[_0x50c5('0x8')](),controller[_0x50c5('0x30')]);router[_0x50c5('0x6')](_0x50c5('0x31'),auth[_0x50c5('0x8')](),controller['mailQueuesWaitingInteractions']);router[_0x50c5('0x6')](_0x50c5('0x32'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x33')]);router['get'](_0x50c5('0x34'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x35')]);router['get'](_0x50c5('0x36'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x37')]);router[_0x50c5('0x6')]('/whatsapp/queues/waitinginteractions',auth['isAuthenticated'](),controller[_0x50c5('0x38')]);router[_0x50c5('0x6')]('/fax/queues/waitinginteractions',auth['isAuthenticated'](),controller['faxQueuesWaitingInteractions']);router[_0x50c5('0x39')](_0x50c5('0x3a'),auth['isAuthenticated'](),controller[_0x50c5('0x3b')](_0x50c5('0x3c')));router[_0x50c5('0x6')](_0x50c5('0x3d'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x3e')]);router[_0x50c5('0x39')]('/chat/queues/:id/notify',auth[_0x50c5('0x8')](),controller[_0x50c5('0x3b')](_0x50c5('0x3f')));router['get'](_0x50c5('0x40'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x41')]);router['post'](_0x50c5('0x42'),auth[_0x50c5('0x8')](),controller['queueNotify'](_0x50c5('0x43')));router[_0x50c5('0x6')](_0x50c5('0x44'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x45')]);router[_0x50c5('0x39')]('/openchannel/queues/:id/notify',auth[_0x50c5('0x8')](),controller[_0x50c5('0x3b')](_0x50c5('0x46')));router['get'](_0x50c5('0x47'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x48')]);router['post'](_0x50c5('0x49'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x3b')](_0x50c5('0x4a')));router[_0x50c5('0x39')](_0x50c5('0x4b'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x3b')](_0x50c5('0x4c')));router[_0x50c5('0x6')](_0x50c5('0x4d'),auth['isAuthenticated'](),controller[_0x50c5('0x4e')]);router['get'](_0x50c5('0x4f'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x50')]);router[_0x50c5('0x39')](_0x50c5('0x51'),auth[_0x50c5('0x8')](),controller[_0x50c5('0x52')]);module['exports']=router;
\ No newline at end of file
+var _0x6615=['agentCapacity','/telephones','/trunks','trunks','/campaigns','campaigns','/fax/accounts','faxAccounts','/chat/queues/waitinginteractions','chatQueuesWaitingInteractions','/mail/queues/waitinginteractions','mailQueuesWaitingInteractions','/openchannel/queues/waitinginteractions','openchannelQueuesWaitingInteractions','openchannelQueuesIdWaitingInteractions','/sms/queues/waitinginteractions','smsQueuesWaitingInteractions','/whatsapp/queues/waitinginteractions','/fax/queues/waitinginteractions','post','/mail/queues/:id/notify','queueNotify','mail','showMailQueues','/chat/queues/:id/notify','chat','showChatQueues','/fax/queues/:id','openchannel','/openchannel/queues/:id','showOpenchannelQueues','/sms/queues/:id/notify','/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','/voice/channels/:uniqueid/stopmixmonitor','voiceChannelStopMixMonitor','voiceQueues','mailQueues','/mail/accounts','mailAccounts','openchannelQueues','smsQueues','/whatsapp/queues','whatsappQueues','faxQueues','/voice/queues/preview/:id','voiceQueuesPreview','/voice/queues/channels','voiceQueuesChannels','voiceQueuesChannel','/voice/queues/channels/:uniqueid/hangup','voiceQueuesChannelHangup','/voice/queues/channels/:uniqueid/redirect/:exten','showVoiceQueues','put','/voice/queues/:id','updateVoiceQueue','/outbound','outbound','/outbound/channels','outboundChannels','/agents','agents','/agents/:id/capacity'];(function(_0x42ab43,_0xb38833){var _0xf1ca33=function(_0x10b5e9){while(--_0x10b5e9){_0x42ab43['push'](_0x42ab43['shift']());}};_0xf1ca33(++_0xb38833);}(_0x6615,0x171));var _0x5661=function(_0xa4f636,_0xaca1b6){_0xa4f636=_0xa4f636-0x0;var _0x37e02a=_0x6615[_0xa4f636];return _0x37e02a;};'use strict';var multer=require(_0x5661('0x0'));var util=require(_0x5661('0x1'));var path=require(_0x5661('0x2'));var express=require(_0x5661('0x3'));var router=express[_0x5661('0x4')]();var auth=require(_0x5661('0x5'));var controller=require(_0x5661('0x6'));router[_0x5661('0x7')](_0x5661('0x8'),auth[_0x5661('0x9')](),controller[_0x5661('0xa')]);router[_0x5661('0x7')]('/voice/channels/:uniqueid/mixmonitor',auth[_0x5661('0x9')](),controller['voiceChannelMixMonitor']);router[_0x5661('0x7')](_0x5661('0xb'),auth[_0x5661('0x9')](),controller[_0x5661('0xc')]);router[_0x5661('0x7')]('/voice/queues',auth[_0x5661('0x9')](),controller[_0x5661('0xd')]);router[_0x5661('0x7')]('/chat/queues',auth[_0x5661('0x9')](),controller['chatQueues']);router[_0x5661('0x7')]('/mail/queues',auth[_0x5661('0x9')](),controller[_0x5661('0xe')]);router[_0x5661('0x7')](_0x5661('0xf'),auth[_0x5661('0x9')](),controller[_0x5661('0x10')]);router['get']('/openchannel/queues',auth[_0x5661('0x9')](),controller[_0x5661('0x11')]);router[_0x5661('0x7')]('/sms/queues',auth[_0x5661('0x9')](),controller[_0x5661('0x12')]);router['get'](_0x5661('0x13'),auth[_0x5661('0x9')](),controller[_0x5661('0x14')]);router[_0x5661('0x7')]('/fax/queues',auth[_0x5661('0x9')](),controller[_0x5661('0x15')]);router['get'](_0x5661('0x16'),auth[_0x5661('0x9')](),controller[_0x5661('0x17')]);router[_0x5661('0x7')](_0x5661('0x18'),auth[_0x5661('0x9')](),controller[_0x5661('0x19')]);router[_0x5661('0x7')]('/voice/queues/channels/:uniqueid',auth[_0x5661('0x9')](),controller[_0x5661('0x1a')]);router[_0x5661('0x7')](_0x5661('0x1b'),auth[_0x5661('0x9')](),controller[_0x5661('0x1c')]);router[_0x5661('0x7')](_0x5661('0x1d'),auth['isAuthenticated'](),controller['voiceQueuesChannelRedirect']);router[_0x5661('0x7')]('/voice/queues/:id',auth[_0x5661('0x9')](),controller[_0x5661('0x1e')]);router[_0x5661('0x1f')](_0x5661('0x20'),auth[_0x5661('0x9')](),controller[_0x5661('0x21')]);router[_0x5661('0x7')](_0x5661('0x22'),auth[_0x5661('0x9')](),controller[_0x5661('0x23')]);router[_0x5661('0x7')](_0x5661('0x24'),auth['isAuthenticated'](),controller[_0x5661('0x25')]);router[_0x5661('0x7')](_0x5661('0x26'),auth[_0x5661('0x9')](),controller[_0x5661('0x27')]);router['put'](_0x5661('0x28'),auth[_0x5661('0x9')](),controller[_0x5661('0x29')]);router[_0x5661('0x7')](_0x5661('0x2a'),auth[_0x5661('0x9')](),controller['telephones']);router[_0x5661('0x7')](_0x5661('0x2b'),auth[_0x5661('0x9')](),controller[_0x5661('0x2c')]);router[_0x5661('0x7')](_0x5661('0x2d'),auth[_0x5661('0x9')](),controller[_0x5661('0x2e')]);router[_0x5661('0x7')](_0x5661('0x2f'),auth['isAuthenticated'](),controller[_0x5661('0x30')]);router[_0x5661('0x7')](_0x5661('0x31'),auth['isAuthenticated'](),controller[_0x5661('0x32')]);router[_0x5661('0x7')](_0x5661('0x33'),auth[_0x5661('0x9')](),controller[_0x5661('0x34')]);router[_0x5661('0x7')](_0x5661('0x35'),auth['isAuthenticated'](),controller[_0x5661('0x36')]);router[_0x5661('0x7')]('/openchannel/queues/:id/waitinginteractions',auth[_0x5661('0x9')](),controller[_0x5661('0x37')]);router[_0x5661('0x7')](_0x5661('0x38'),auth[_0x5661('0x9')](),controller[_0x5661('0x39')]);router[_0x5661('0x7')](_0x5661('0x3a'),auth[_0x5661('0x9')](),controller['whatsappQueuesWaitingInteractions']);router['get'](_0x5661('0x3b'),auth[_0x5661('0x9')](),controller['faxQueuesWaitingInteractions']);router[_0x5661('0x3c')](_0x5661('0x3d'),auth[_0x5661('0x9')](),controller[_0x5661('0x3e')](_0x5661('0x3f')));router[_0x5661('0x7')]('/mail/queues/:id',auth[_0x5661('0x9')](),controller[_0x5661('0x40')]);router['post'](_0x5661('0x41'),auth[_0x5661('0x9')](),controller[_0x5661('0x3e')](_0x5661('0x42')));router['get']('/chat/queues/:id',auth[_0x5661('0x9')](),controller[_0x5661('0x43')]);router[_0x5661('0x3c')]('/fax/queues/:id/notify',auth['isAuthenticated'](),controller['queueNotify']('fax'));router['get'](_0x5661('0x44'),auth[_0x5661('0x9')](),controller['showFaxQueues']);router[_0x5661('0x3c')]('/openchannel/queues/:id/notify',auth[_0x5661('0x9')](),controller[_0x5661('0x3e')](_0x5661('0x45')));router[_0x5661('0x7')](_0x5661('0x46'),auth[_0x5661('0x9')](),controller[_0x5661('0x47')]);router[_0x5661('0x3c')](_0x5661('0x48'),auth['isAuthenticated'](),controller[_0x5661('0x3e')]('sms'));router[_0x5661('0x3c')](_0x5661('0x49'),auth[_0x5661('0x9')](),controller[_0x5661('0x3e')](_0x5661('0x4a')));router[_0x5661('0x7')](_0x5661('0x4b'),auth[_0x5661('0x9')](),controller[_0x5661('0x4c')]);router[_0x5661('0x7')](_0x5661('0x4d'),auth['isAuthenticated'](),controller[_0x5661('0x4e')]);router[_0x5661('0x3c')](_0x5661('0x4f'),auth[_0x5661('0x9')](),controller[_0x5661('0x50')]);module[_0x5661('0x51')]=router;
\ No newline at end of file