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