adb4f5f990bf9f0b71fb4bb8857f56e2375cde5e
[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 _0x6f2e=['../../components/auth/service','./realtime.controller','get','/agents','isAuthenticated','getQueues','exports','express','Router'];(function(_0x556017,_0x5bcd93){var _0x525b7e=function(_0x2f13d6){while(--_0x2f13d6){_0x556017['push'](_0x556017['shift']());}};_0x525b7e(++_0x5bcd93);}(_0x6f2e,0x8e));var _0xe6f2=function(_0x1674a9,_0x51a843){_0x1674a9=_0x1674a9-0x0;var _0x2bf67b=_0x6f2e[_0x1674a9];return _0x2bf67b;};'use strict';var express=require(_0xe6f2('0x0'));var router=express[_0xe6f2('0x1')]();var auth=require(_0xe6f2('0x2'));var controller=require(_0xe6f2('0x3'));router[_0xe6f2('0x4')](_0xe6f2('0x5'),auth[_0xe6f2('0x6')](),controller['getAgents']);router[_0xe6f2('0x4')]('/queues',auth[_0xe6f2('0x6')](),controller[_0xe6f2('0x7')]);module[_0xe6f2('0x8')]=router;