Built motion from commit 9d5c653a.|2.5.44
[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 _0x5dd1=['./system.controller','get','isAuthenticated','killProcess','exports','express','Router'];(function(_0x4f11cb,_0x14e174){var _0x491488=function(_0x2904a9){while(--_0x2904a9){_0x4f11cb['push'](_0x4f11cb['shift']());}};_0x491488(++_0x14e174);}(_0x5dd1,0x155));var _0x15dd=function(_0xfb1864,_0x1cc767){_0xfb1864=_0xfb1864-0x0;var _0x4767e7=_0x5dd1[_0xfb1864];return _0x4767e7;};'use strict';var express=require(_0x15dd('0x0'));var router=express[_0x15dd('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x15dd('0x2'));router[_0x15dd('0x3')]('/',auth[_0x15dd('0x4')](),controller['index']);router['get']('/process/:pid/kill',auth[_0x15dd('0x4')](),controller[_0x15dd('0x5')]);module[_0x15dd('0x6')]=router;