e71ad77942b9855dc578c88f34bb09945d5e2efe
[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 _0x13df=['./realtime.controller','get','/agents','isAuthenticated','/queues','exports','express','Router'];(function(_0x4f5bcb,_0x59f765){var _0x58dd3e=function(_0xbcca19){while(--_0xbcca19){_0x4f5bcb['push'](_0x4f5bcb['shift']());}};_0x58dd3e(++_0x59f765);}(_0x13df,0x86));var _0xf13d=function(_0x5b60e1,_0x231f8d){_0x5b60e1=_0x5b60e1-0x0;var _0x1f34b2=_0x13df[_0x5b60e1];return _0x1f34b2;};'use strict';var express=require(_0xf13d('0x0'));var router=express[_0xf13d('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0xf13d('0x2'));router[_0xf13d('0x3')](_0xf13d('0x4'),auth[_0xf13d('0x5')](),controller['getAgents']);router[_0xf13d('0x3')](_0xf13d('0x6'),auth[_0xf13d('0x5')](),controller['getQueues']);module[_0xf13d('0x7')]=router;