e0e1342b57c727663f544f33128dad5238051bdc
[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 _0xb5b4=['isAuthenticated','getAgents','get','getQueues','exports','../../components/auth/service','./realtime.controller'];(function(_0x419ca1,_0x40738b){var _0x5dac91=function(_0x4019c5){while(--_0x4019c5){_0x419ca1['push'](_0x419ca1['shift']());}};_0x5dac91(++_0x40738b);}(_0xb5b4,0x98));var _0x4b5b=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0xb5b4[_0x19e35c];return _0x3e1fe8;};'use strict';var express=require('express');var router=express['Router']();var auth=require(_0x4b5b('0x0'));var controller=require(_0x4b5b('0x1'));router['get']('/agents',auth[_0x4b5b('0x2')](),controller[_0x4b5b('0x3')]);router[_0x4b5b('0x4')]('/queues',auth['isAuthenticated'](),controller[_0x4b5b('0x5')]);module[_0x4b5b('0x6')]=router;