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