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