7623948febb33b2dd0d26526fc4e24eb0f68fcc4
[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 _0xa537=['isAuthenticated','getAgents','getQueues','exports','express','Router','./realtime.controller','get','/agents'];(function(_0x199b0b,_0x38dacb){var _0x4a70ec=function(_0x4d7022){while(--_0x4d7022){_0x199b0b['push'](_0x199b0b['shift']());}};_0x4a70ec(++_0x38dacb);}(_0xa537,0x1b4));var _0x7a53=function(_0x5f4c3e,_0x11899c){_0x5f4c3e=_0x5f4c3e-0x0;var _0x92f694=_0xa537[_0x5f4c3e];return _0x92f694;};'use strict';var express=require(_0x7a53('0x0'));var router=express[_0x7a53('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x7a53('0x2'));router[_0x7a53('0x3')](_0x7a53('0x4'),auth[_0x7a53('0x5')](),controller[_0x7a53('0x6')]);router[_0x7a53('0x3')]('/queues',auth[_0x7a53('0x5')](),controller[_0x7a53('0x7')]);module[_0x7a53('0x8')]=router;