Built motion from commit 9d0783e6.|2.6.13
[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 _0x184c=['get','isAuthenticated','getAgents','getQueues','exports','express','Router'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0x184c,0x140));var _0xc184=function(_0x4a5abe,_0x5b1426){_0x4a5abe=_0x4a5abe-0x0;var _0x4169f0=_0x184c[_0x4a5abe];return _0x4169f0;};'use strict';var express=require(_0xc184('0x0'));var router=express[_0xc184('0x1')]();var auth=require('../../components/auth/service');var controller=require('./realtime.controller');router[_0xc184('0x2')]('/agents',auth[_0xc184('0x3')](),controller[_0xc184('0x4')]);router[_0xc184('0x2')]('/queues',auth[_0xc184('0x3')](),controller[_0xc184('0x5')]);module[_0xc184('0x6')]=router;