d3b0a2f0d24e7136fb61fee08e491bb7300259ac
[motion2.git] / server / api / rpc / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xe7c9=['/voice/queues','voiceQueues','/chat/queues','chatQueues','/mail/accounts','mailAccounts','openchannelQueues','smsQueues','/whatsapp/queues','whatsappQueues','/fax/queues','faxQueues','/voice/queues/preview/:id','voiceQueuesPreview','/voice/queues/channels','voiceQueuesChannels','/voice/queues/channels/:uniqueid','voiceQueuesChannel','/voice/queues/channels/:uniqueid/hangup','voiceQueuesChannelHangup','/voice/queues/channels/:uniqueid/redirect/:exten','/voice/queues/:id','showVoiceQueues','put','updateVoiceQueue','outbound','outboundChannels','agents','/agents/:id/capacity','/telephones','telephones','/trunks','trunks','/campaigns','campaigns','/fax/accounts','/chat/queues/waitinginteractions','chatQueuesWaitingInteractions','/mail/queues/waitinginteractions','mailQueuesWaitingInteractions','/openchannel/queues/waitinginteractions','openchannelQueuesWaitingInteractions','/openchannel/queues/:id/waitinginteractions','openchannelQueuesIdWaitingInteractions','/sms/queues/waitinginteractions','/whatsapp/queues/waitinginteractions','whatsappQueuesWaitingInteractions','/fax/queues/waitinginteractions','faxQueuesWaitingInteractions','post','/mail/queues/:id/notify','queueNotify','mail','/mail/queues/:id','chat','/chat/queues/:id','/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','/whatsapp/queues/:id','showWhatsappQueues','/agents/:id/notify','agentNotify','exports','multer','util','path','express','Router','../../components/auth/service','./rpc.controller','get','/voice/channels','isAuthenticated','voiceChannelMixMonitor','/voice/channels/:uniqueid/stopmixmonitor','voiceChannelStopMixMonitor'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xe7c9,0x14b));var _0x9e7c=function(_0x465a0c,_0x19d4d5){_0x465a0c=_0x465a0c-0x0;var _0x1e202e=_0xe7c9[_0x465a0c];return _0x1e202e;};'use strict';var multer=require(_0x9e7c('0x0'));var util=require(_0x9e7c('0x1'));var path=require(_0x9e7c('0x2'));var express=require(_0x9e7c('0x3'));var router=express[_0x9e7c('0x4')]();var auth=require(_0x9e7c('0x5'));var controller=require(_0x9e7c('0x6'));router[_0x9e7c('0x7')](_0x9e7c('0x8'),auth[_0x9e7c('0x9')](),controller['voiceChannels']);router['get']('/voice/channels/:uniqueid/mixmonitor',auth['isAuthenticated'](),controller[_0x9e7c('0xa')]);router[_0x9e7c('0x7')](_0x9e7c('0xb'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0xc')]);router[_0x9e7c('0x7')](_0x9e7c('0xd'),auth['isAuthenticated'](),controller[_0x9e7c('0xe')]);router[_0x9e7c('0x7')](_0x9e7c('0xf'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x10')]);router['get']('/mail/queues',auth['isAuthenticated'](),controller['mailQueues']);router[_0x9e7c('0x7')](_0x9e7c('0x11'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x12')]);router[_0x9e7c('0x7')]('/openchannel/queues',auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x13')]);router[_0x9e7c('0x7')]('/sms/queues',auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x14')]);router['get'](_0x9e7c('0x15'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x16')]);router['get'](_0x9e7c('0x17'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x18')]);router['get'](_0x9e7c('0x19'),auth['isAuthenticated'](),controller[_0x9e7c('0x1a')]);router['get'](_0x9e7c('0x1b'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x1c')]);router[_0x9e7c('0x7')](_0x9e7c('0x1d'),auth['isAuthenticated'](),controller[_0x9e7c('0x1e')]);router[_0x9e7c('0x7')](_0x9e7c('0x1f'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x20')]);router[_0x9e7c('0x7')](_0x9e7c('0x21'),auth['isAuthenticated'](),controller['voiceQueuesChannelRedirect']);router[_0x9e7c('0x7')](_0x9e7c('0x22'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x23')]);router[_0x9e7c('0x24')]('/voice/queues/:id',auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x25')]);router[_0x9e7c('0x7')]('/outbound',auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x26')]);router[_0x9e7c('0x7')]('/outbound/channels',auth['isAuthenticated'](),controller[_0x9e7c('0x27')]);router[_0x9e7c('0x7')]('/agents',auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x28')]);router[_0x9e7c('0x24')](_0x9e7c('0x29'),auth['isAuthenticated'](),controller['agentCapacity']);router['get'](_0x9e7c('0x2a'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x2b')]);router[_0x9e7c('0x7')](_0x9e7c('0x2c'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x2d')]);router[_0x9e7c('0x7')](_0x9e7c('0x2e'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x2f')]);router[_0x9e7c('0x7')](_0x9e7c('0x30'),auth[_0x9e7c('0x9')](),controller['faxAccounts']);router[_0x9e7c('0x7')](_0x9e7c('0x31'),auth['isAuthenticated'](),controller[_0x9e7c('0x32')]);router['get'](_0x9e7c('0x33'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x34')]);router[_0x9e7c('0x7')](_0x9e7c('0x35'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x36')]);router[_0x9e7c('0x7')](_0x9e7c('0x37'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x38')]);router[_0x9e7c('0x7')](_0x9e7c('0x39'),auth[_0x9e7c('0x9')](),controller['smsQueuesWaitingInteractions']);router[_0x9e7c('0x7')](_0x9e7c('0x3a'),auth['isAuthenticated'](),controller[_0x9e7c('0x3b')]);router[_0x9e7c('0x7')](_0x9e7c('0x3c'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x3d')]);router[_0x9e7c('0x3e')](_0x9e7c('0x3f'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x40')](_0x9e7c('0x41')));router[_0x9e7c('0x7')](_0x9e7c('0x42'),auth[_0x9e7c('0x9')](),controller['showMailQueues']);router[_0x9e7c('0x3e')]('/chat/queues/:id/notify',auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x40')](_0x9e7c('0x43')));router[_0x9e7c('0x7')](_0x9e7c('0x44'),auth['isAuthenticated'](),controller['showChatQueues']);router[_0x9e7c('0x3e')](_0x9e7c('0x45'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x40')]('fax'));router[_0x9e7c('0x7')](_0x9e7c('0x46'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x47')]);router[_0x9e7c('0x3e')](_0x9e7c('0x48'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x40')](_0x9e7c('0x49')));router['get'](_0x9e7c('0x4a'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x4b')]);router['post'](_0x9e7c('0x4c'),auth[_0x9e7c('0x9')](),controller['queueNotify'](_0x9e7c('0x4d')));router[_0x9e7c('0x3e')](_0x9e7c('0x4e'),auth['isAuthenticated'](),controller[_0x9e7c('0x40')](_0x9e7c('0x4f')));router[_0x9e7c('0x7')](_0x9e7c('0x50'),auth[_0x9e7c('0x9')](),controller['showSmsQueues']);router[_0x9e7c('0x7')](_0x9e7c('0x51'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x52')]);router[_0x9e7c('0x3e')](_0x9e7c('0x53'),auth[_0x9e7c('0x9')](),controller[_0x9e7c('0x54')]);module[_0x9e7c('0x55')]=router;