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