9c8166da64f1a5d718200e4ac68c66573cbc04c5
[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 _0x86e1=['smsQueues','/fax/queues','/voice/queues/preview/:id','voiceQueuesPreview','/voice/queues/channels','voiceQueuesChannels','/voice/queues/channels/:uniqueid','/voice/queues/channels/:uniqueid/hangup','/voice/queues/channels/:uniqueid/redirect/:exten','voiceQueuesChannelRedirect','/voice/queues/:id','showVoiceQueues','updateVoiceQueue','/outbound','/outbound/channels','/agents','agents','put','/agents/:id/capacity','/telephones','/campaigns','campaigns','/fax/accounts','faxAccounts','/chat/queues/waitinginteractions','/mail/queues/waitinginteractions','mailQueuesWaitingInteractions','/openchannel/queues/waitinginteractions','openchannelQueuesWaitingInteractions','/openchannel/queues/:id/waitinginteractions','openchannelQueuesIdWaitingInteractions','/sms/queues/waitinginteractions','/whatsapp/queues/waitinginteractions','whatsappQueuesWaitingInteractions','faxQueuesWaitingInteractions','post','mail','queueNotify','chat','showChatQueues','fax','showFaxQueues','/openchannel/queues/:id/notify','openchannel','/openchannel/queues/:id','showOpenchannelQueues','/sms/queues/:id/notify','/whatsapp/queues/:id/notify','showWhatsappQueues','/agents/:id/notify','agentNotify','multer','util','path','express','Router','./rpc.controller','voiceChannels','get','isAuthenticated','voiceChannelMixMonitor','voiceChannelStopMixMonitor','/voice/queues','/chat/queues','/mail/queues','mailQueues','/mail/accounts','/openchannel/queues','openchannelQueues','/sms/queues'];(function(_0x2c0461,_0x242420){var _0x451b40=function(_0x3ff623){while(--_0x3ff623){_0x2c0461['push'](_0x2c0461['shift']());}};_0x451b40(++_0x242420);}(_0x86e1,0x14b));var _0x186e=function(_0x1a2a11,_0x4e8ac0){_0x1a2a11=_0x1a2a11-0x0;var _0x429f92=_0x86e1[_0x1a2a11];return _0x429f92;};'use strict';var multer=require(_0x186e('0x0'));var util=require(_0x186e('0x1'));var path=require(_0x186e('0x2'));var express=require(_0x186e('0x3'));var router=express[_0x186e('0x4')]();var auth=require('../../components/auth/service');var controller=require(_0x186e('0x5'));router['get']('/voice/channels',auth['isAuthenticated'](),controller[_0x186e('0x6')]);router[_0x186e('0x7')]('/voice/channels/:uniqueid/mixmonitor',auth[_0x186e('0x8')](),controller[_0x186e('0x9')]);router[_0x186e('0x7')]('/voice/channels/:uniqueid/stopmixmonitor',auth['isAuthenticated'](),controller[_0x186e('0xa')]);router[_0x186e('0x7')](_0x186e('0xb'),auth[_0x186e('0x8')](),controller['voiceQueues']);router[_0x186e('0x7')](_0x186e('0xc'),auth['isAuthenticated'](),controller['chatQueues']);router[_0x186e('0x7')](_0x186e('0xd'),auth['isAuthenticated'](),controller[_0x186e('0xe')]);router[_0x186e('0x7')](_0x186e('0xf'),auth[_0x186e('0x8')](),controller['mailAccounts']);router[_0x186e('0x7')](_0x186e('0x10'),auth[_0x186e('0x8')](),controller[_0x186e('0x11')]);router[_0x186e('0x7')](_0x186e('0x12'),auth[_0x186e('0x8')](),controller[_0x186e('0x13')]);router[_0x186e('0x7')]('/whatsapp/queues',auth['isAuthenticated'](),controller['whatsappQueues']);router[_0x186e('0x7')](_0x186e('0x14'),auth[_0x186e('0x8')](),controller['faxQueues']);router['get'](_0x186e('0x15'),auth[_0x186e('0x8')](),controller[_0x186e('0x16')]);router['get'](_0x186e('0x17'),auth[_0x186e('0x8')](),controller[_0x186e('0x18')]);router[_0x186e('0x7')](_0x186e('0x19'),auth['isAuthenticated'](),controller['voiceQueuesChannel']);router['get'](_0x186e('0x1a'),auth[_0x186e('0x8')](),controller['voiceQueuesChannelHangup']);router[_0x186e('0x7')](_0x186e('0x1b'),auth[_0x186e('0x8')](),controller[_0x186e('0x1c')]);router[_0x186e('0x7')](_0x186e('0x1d'),auth['isAuthenticated'](),controller[_0x186e('0x1e')]);router['put'](_0x186e('0x1d'),auth['isAuthenticated'](),controller[_0x186e('0x1f')]);router['get'](_0x186e('0x20'),auth[_0x186e('0x8')](),controller['outbound']);router[_0x186e('0x7')](_0x186e('0x21'),auth[_0x186e('0x8')](),controller['outboundChannels']);router[_0x186e('0x7')](_0x186e('0x22'),auth['isAuthenticated'](),controller[_0x186e('0x23')]);router[_0x186e('0x24')](_0x186e('0x25'),auth['isAuthenticated'](),controller['agentCapacity']);router[_0x186e('0x7')](_0x186e('0x26'),auth['isAuthenticated'](),controller['telephones']);router[_0x186e('0x7')]('/trunks',auth['isAuthenticated'](),controller['trunks']);router[_0x186e('0x7')](_0x186e('0x27'),auth[_0x186e('0x8')](),controller[_0x186e('0x28')]);router[_0x186e('0x7')](_0x186e('0x29'),auth['isAuthenticated'](),controller[_0x186e('0x2a')]);router['get'](_0x186e('0x2b'),auth['isAuthenticated'](),controller['chatQueuesWaitingInteractions']);router['get'](_0x186e('0x2c'),auth['isAuthenticated'](),controller[_0x186e('0x2d')]);router['get'](_0x186e('0x2e'),auth[_0x186e('0x8')](),controller[_0x186e('0x2f')]);router['get'](_0x186e('0x30'),auth[_0x186e('0x8')](),controller[_0x186e('0x31')]);router['get'](_0x186e('0x32'),auth['isAuthenticated'](),controller['smsQueuesWaitingInteractions']);router[_0x186e('0x7')](_0x186e('0x33'),auth['isAuthenticated'](),controller[_0x186e('0x34')]);router[_0x186e('0x7')]('/fax/queues/waitinginteractions',auth[_0x186e('0x8')](),controller[_0x186e('0x35')]);router[_0x186e('0x36')]('/mail/queues/:id/notify',auth[_0x186e('0x8')](),controller['queueNotify'](_0x186e('0x37')));router['get']('/mail/queues/:id',auth[_0x186e('0x8')](),controller['showMailQueues']);router[_0x186e('0x36')]('/chat/queues/:id/notify',auth[_0x186e('0x8')](),controller[_0x186e('0x38')](_0x186e('0x39')));router[_0x186e('0x7')]('/chat/queues/:id',auth[_0x186e('0x8')](),controller[_0x186e('0x3a')]);router['post']('/fax/queues/:id/notify',auth['isAuthenticated'](),controller[_0x186e('0x38')](_0x186e('0x3b')));router[_0x186e('0x7')]('/fax/queues/:id',auth[_0x186e('0x8')](),controller[_0x186e('0x3c')]);router[_0x186e('0x36')](_0x186e('0x3d'),auth[_0x186e('0x8')](),controller[_0x186e('0x38')](_0x186e('0x3e')));router[_0x186e('0x7')](_0x186e('0x3f'),auth[_0x186e('0x8')](),controller[_0x186e('0x40')]);router[_0x186e('0x36')](_0x186e('0x41'),auth[_0x186e('0x8')](),controller[_0x186e('0x38')]('sms'));router[_0x186e('0x36')](_0x186e('0x42'),auth[_0x186e('0x8')](),controller[_0x186e('0x38')]('whatsapp'));router[_0x186e('0x7')]('/sms/queues/:id',auth[_0x186e('0x8')](),controller['showSmsQueues']);router[_0x186e('0x7')]('/whatsapp/queues/:id',auth[_0x186e('0x8')](),controller[_0x186e('0x43')]);router[_0x186e('0x36')](_0x186e('0x44'),auth[_0x186e('0x8')](),controller[_0x186e('0x45')]);module['exports']=router;