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