abd2e98c6148fcb0629477c6058d00026c433ece
[motion2.git] / server / api / realtime / 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 _0x0de1=['/queues','getQueues','express','../../components/auth/service','isAuthenticated'];(function(_0x44b695,_0x3b7a88){var _0x51bd38=function(_0x2373ab){while(--_0x2373ab){_0x44b695['push'](_0x44b695['shift']());}};_0x51bd38(++_0x3b7a88);}(_0x0de1,0xa2));var _0x10de=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x0de1[_0x3dd15e];return _0x231fd0;};'use strict';var express=require(_0x10de('0x0'));var router=express['Router']();var auth=require(_0x10de('0x1'));var controller=require('./realtime.controller');router['get']('/agents',auth[_0x10de('0x2')](),controller['getAgents']);router['get'](_0x10de('0x3'),auth[_0x10de('0x2')](),controller[_0x10de('0x4')]);module['exports']=router;