2ed74793d1b5d4b876d4908b693a99ebf1b47f56
[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 _0x0b93=['express','Router','./realtime.controller','get','getAgents','/queues','exports'];(function(_0x8af54b,_0x280be5){var _0x27d8f0=function(_0x559734){while(--_0x559734){_0x8af54b['push'](_0x8af54b['shift']());}};_0x27d8f0(++_0x280be5);}(_0x0b93,0x103));var _0x30b9=function(_0x1341ee,_0x2ce5c0){_0x1341ee=_0x1341ee-0x0;var _0x24f3c5=_0x0b93[_0x1341ee];return _0x24f3c5;};'use strict';var express=require(_0x30b9('0x0'));var router=express[_0x30b9('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x30b9('0x2'));router[_0x30b9('0x3')]('/agents',auth['isAuthenticated'](),controller[_0x30b9('0x4')]);router[_0x30b9('0x3')](_0x30b9('0x5'),auth['isAuthenticated'](),controller['getQueues']);module[_0x30b9('0x6')]=router;