2cc085fe3879e92af76ab4dd227f4cd32f210848
[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 _0x8502=['isAuthenticated','exports','express','../../components/auth/service','get','/agents','/queues'];(function(_0x490bd4,_0x28a3b3){var _0x4762cf=function(_0x4bee62){while(--_0x4bee62){_0x490bd4['push'](_0x490bd4['shift']());}};_0x4762cf(++_0x28a3b3);}(_0x8502,0x198));var _0x2850=function(_0x489c95,_0x53159c){_0x489c95=_0x489c95-0x0;var _0x10e7a7=_0x8502[_0x489c95];return _0x10e7a7;};'use strict';var express=require(_0x2850('0x0'));var router=express['Router']();var auth=require(_0x2850('0x1'));var controller=require('./realtime.controller');router[_0x2850('0x2')](_0x2850('0x3'),auth['isAuthenticated'](),controller['getAgents']);router['get'](_0x2850('0x4'),auth[_0x2850('0x5')](),controller['getQueues']);module[_0x2850('0x6')]=router;