25cffbbe84abe3ba8d739e9ae600a8516facd2f2
[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 _0x8c53=['express','Router','get','/agents','isAuthenticated','getAgents','getQueues','exports'];(function(_0x1621f3,_0x251dc5){var _0x39afba=function(_0x18dce5){while(--_0x18dce5){_0x1621f3['push'](_0x1621f3['shift']());}};_0x39afba(++_0x251dc5);}(_0x8c53,0x178));var _0x38c5=function(_0xac46,_0x461cc8){_0xac46=_0xac46-0x0;var _0x3d9a99=_0x8c53[_0xac46];return _0x3d9a99;};'use strict';var express=require(_0x38c5('0x0'));var router=express[_0x38c5('0x1')]();var auth=require('../../components/auth/service');var controller=require('./realtime.controller');router[_0x38c5('0x2')](_0x38c5('0x3'),auth[_0x38c5('0x4')](),controller[_0x38c5('0x5')]);router[_0x38c5('0x2')]('/queues',auth['isAuthenticated'](),controller[_0x38c5('0x6')]);module[_0x38c5('0x7')]=router;