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