4ae723ee69b2c298287536c0bda08dccf740fac0
[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 _0xb658=['get','index','isAuthenticated','express','../../components/auth/service'];(function(_0x581332,_0x588a7b){var _0xfa58b4=function(_0x1c58a6){while(--_0x1c58a6){_0x581332['push'](_0x581332['shift']());}};_0xfa58b4(++_0x588a7b);}(_0xb658,0x166));var _0x8b65=function(_0x2b0c7f,_0x311567){_0x2b0c7f=_0x2b0c7f-0x0;var _0x548837=_0xb658[_0x2b0c7f];return _0x548837;};'use strict';var express=require(_0x8b65('0x0'));var router=express['Router']();var auth=require(_0x8b65('0x1'));var controller=require('./system.controller');router[_0x8b65('0x2')]('/',auth['isAuthenticated'](),controller[_0x8b65('0x3')]);router[_0x8b65('0x2')]('/process/:pid/kill',auth[_0x8b65('0x4')](),controller['killProcess']);module['exports']=router;