4df3e698b9dbd9578e9bbbf9a3b40c56795947ba
[motion2.git] / server / api / system / 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 _0xeb8a=['./system.controller','isAuthenticated','/process/:pid/kill','killProcess','express','Router','../../components/auth/service'];(function(_0x411add,_0x1aed38){var _0x238242=function(_0x4a1cd5){while(--_0x4a1cd5){_0x411add['push'](_0x411add['shift']());}};_0x238242(++_0x1aed38);}(_0xeb8a,0x19a));var _0xaeb8=function(_0x4a658e,_0x1cabd0){_0x4a658e=_0x4a658e-0x0;var _0x48cdee=_0xeb8a[_0x4a658e];return _0x48cdee;};'use strict';var express=require(_0xaeb8('0x0'));var router=express[_0xaeb8('0x1')]();var auth=require(_0xaeb8('0x2'));var controller=require(_0xaeb8('0x3'));router['get']('/',auth[_0xaeb8('0x4')](),controller['index']);router['get'](_0xaeb8('0x5'),auth['isAuthenticated'](),controller[_0xaeb8('0x6')]);module['exports']=router;