582a3b88430e1dd580e4afe7d64b957982d33625
[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 _0x800d=['Router','../../components/auth/service','get','/agents','getAgents','/queues','getQueues','exports'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x800d,0x190));var _0xd800=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x800d[_0x3dd15e];return _0x231fd0;};'use strict';var express=require('express');var router=express[_0xd800('0x0')]();var auth=require(_0xd800('0x1'));var controller=require('./realtime.controller');router[_0xd800('0x2')](_0xd800('0x3'),auth['isAuthenticated'](),controller[_0xd800('0x4')]);router[_0xd800('0x2')](_0xd800('0x5'),auth['isAuthenticated'](),controller[_0xd800('0x6')]);module[_0xd800('0x7')]=router;