39e1dbf7519c44845e5e87528f21a235f3ca45c7
[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 _0x74a5=['/agents','isAuthenticated','getAgents','/queues','express','get'];(function(_0x1908b0,_0x36298e){var _0x1fa869=function(_0x6c71fc){while(--_0x6c71fc){_0x1908b0['push'](_0x1908b0['shift']());}};_0x1fa869(++_0x36298e);}(_0x74a5,0x19c));var _0x574a=function(_0x3ad2ec,_0x3fbab6){_0x3ad2ec=_0x3ad2ec-0x0;var _0x25181b=_0x74a5[_0x3ad2ec];return _0x25181b;};'use strict';var express=require(_0x574a('0x0'));var router=express['Router']();var auth=require('../../components/auth/service');var controller=require('./realtime.controller');router[_0x574a('0x1')](_0x574a('0x2'),auth[_0x574a('0x3')](),controller[_0x574a('0x4')]);router[_0x574a('0x1')](_0x574a('0x5'),auth[_0x574a('0x3')](),controller['getQueues']);module['exports']=router;