4a245555a918ea125f0b1fe180cca258961ae137
[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 _0xa6ca=['Router','get','isAuthenticated','getAgents','/queues','getQueues','exports'];(function(_0x4e237e,_0x563aae){var _0x5ef1fc=function(_0x31d46f){while(--_0x31d46f){_0x4e237e['push'](_0x4e237e['shift']());}};_0x5ef1fc(++_0x563aae);}(_0xa6ca,0xbd));var _0xaa6c=function(_0x1d1779,_0x284147){_0x1d1779=_0x1d1779-0x0;var _0x2377e9=_0xa6ca[_0x1d1779];return _0x2377e9;};'use strict';var express=require('express');var router=express[_0xaa6c('0x0')]();var auth=require('../../components/auth/service');var controller=require('./realtime.controller');router[_0xaa6c('0x1')]('/agents',auth[_0xaa6c('0x2')](),controller[_0xaa6c('0x3')]);router['get'](_0xaa6c('0x4'),auth[_0xaa6c('0x2')](),controller[_0xaa6c('0x5')]);module[_0xaa6c('0x6')]=router;