ed90119f406170ff7299d224796735ec3c6314ac
[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 _0x8433=['express','Router','../../components/auth/service','get','isAuthenticated','killProcess'];(function(_0x4b7895,_0x3c4f5d){var _0x264180=function(_0xe0e861){while(--_0xe0e861){_0x4b7895['push'](_0x4b7895['shift']());}};_0x264180(++_0x3c4f5d);}(_0x8433,0x1e0));var _0x3843=function(_0x5da0d9,_0x49ee54){_0x5da0d9=_0x5da0d9-0x0;var _0x4b6d2f=_0x8433[_0x5da0d9];return _0x4b6d2f;};'use strict';var express=require(_0x3843('0x0'));var router=express[_0x3843('0x1')]();var auth=require(_0x3843('0x2'));var controller=require('./system.controller');router[_0x3843('0x3')]('/',auth[_0x3843('0x4')](),controller['index']);router['get']('/process/:pid/kill',auth[_0x3843('0x4')](),controller[_0x3843('0x5')]);module['exports']=router;