f0fa4609b7309b6a12c24b3cebcd96ce216fe879
[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 _0xe61a=['killProcess','express','Router','./system.controller','isAuthenticated','index','get'];(function(_0x5e7514,_0x30c2e1){var _0x12f472=function(_0x33ddb6){while(--_0x33ddb6){_0x5e7514['push'](_0x5e7514['shift']());}};_0x12f472(++_0x30c2e1);}(_0xe61a,0x120));var _0xae61=function(_0x31680a,_0x36eec6){_0x31680a=_0x31680a-0x0;var _0x4813fd=_0xe61a[_0x31680a];return _0x4813fd;};'use strict';var express=require(_0xae61('0x0'));var router=express[_0xae61('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0xae61('0x2'));router['get']('/',auth[_0xae61('0x3')](),controller[_0xae61('0x4')]);router[_0xae61('0x5')]('/process/:pid/kill',auth[_0xae61('0x3')](),controller[_0xae61('0x6')]);module['exports']=router;