Built motion from commit 47436d59.|2.6.7
[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 _0x025f=['express','Router','./realtime.controller','get','/agents','isAuthenticated','getAgents','getQueues','exports'];(function(_0x28dd32,_0x20c546){var _0x3a59bf=function(_0x5d1bb2){while(--_0x5d1bb2){_0x28dd32['push'](_0x28dd32['shift']());}};_0x3a59bf(++_0x20c546);}(_0x025f,0x18c));var _0xf025=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0x025f[_0x4565bf];return _0x5610ba;};'use strict';var express=require(_0xf025('0x0'));var router=express[_0xf025('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0xf025('0x2'));router[_0xf025('0x3')](_0xf025('0x4'),auth[_0xf025('0x5')](),controller[_0xf025('0x6')]);router['get']('/queues',auth[_0xf025('0x5')](),controller[_0xf025('0x7')]);module[_0xf025('0x8')]=router;