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