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