901255ce4771d2ead2175f644ecdfe6d5d4bc4d2
[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 _0x2bc6=['express','get','/agents','/queues','getQueues','exports'];(function(_0x4d5c41,_0x1b7df3){var _0x11129b=function(_0x23c9d0){while(--_0x23c9d0){_0x4d5c41['push'](_0x4d5c41['shift']());}};_0x11129b(++_0x1b7df3);}(_0x2bc6,0x1ec));var _0x62bc=function(_0x481df5,_0x216652){_0x481df5=_0x481df5-0x0;var _0x32726e=_0x2bc6[_0x481df5];return _0x32726e;};'use strict';var express=require(_0x62bc('0x0'));var router=express['Router']();var auth=require('../../components/auth/service');var controller=require('./realtime.controller');router[_0x62bc('0x1')](_0x62bc('0x2'),auth['isAuthenticated'](),controller['getAgents']);router[_0x62bc('0x1')](_0x62bc('0x3'),auth['isAuthenticated'](),controller[_0x62bc('0x4')]);module[_0x62bc('0x5')]=router;