Built motion from commit 092f8824.|2.5.49
[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 _0xcc72=['express','isAuthenticated','getAgents','get'];(function(_0x47a7d0,_0x4e182d){var _0xb9bd08=function(_0x588ee2){while(--_0x588ee2){_0x47a7d0['push'](_0x47a7d0['shift']());}};_0xb9bd08(++_0x4e182d);}(_0xcc72,0x6c));var _0x2cc7=function(_0x2bc462,_0x255425){_0x2bc462=_0x2bc462-0x0;var _0x39fd1b=_0xcc72[_0x2bc462];return _0x39fd1b;};'use strict';var express=require(_0x2cc7('0x0'));var router=express['Router']();var auth=require('../../components/auth/service');var controller=require('./realtime.controller');router['get']('/agents',auth[_0x2cc7('0x1')](),controller[_0x2cc7('0x2')]);router[_0x2cc7('0x3')]('/queues',auth[_0x2cc7('0x1')](),controller['getQueues']);module['exports']=router;