Built motion from commit 192134f6.|2.6.25
[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 _0x9fde=['isAuthenticated','index','killProcess','express','Router','./system.controller','get'];(function(_0x4d8a8f,_0x2afd4c){var _0xfc4adc=function(_0xb89886){while(--_0xb89886){_0x4d8a8f['push'](_0x4d8a8f['shift']());}};_0xfc4adc(++_0x2afd4c);}(_0x9fde,0x1d8));var _0xe9fd=function(_0x3de7e0,_0x28cbff){_0x3de7e0=_0x3de7e0-0x0;var _0x11d0b3=_0x9fde[_0x3de7e0];return _0x11d0b3;};'use strict';var express=require(_0xe9fd('0x0'));var router=express[_0xe9fd('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0xe9fd('0x2'));router[_0xe9fd('0x3')]('/',auth[_0xe9fd('0x4')](),controller[_0xe9fd('0x5')]);router[_0xe9fd('0x3')]('/process/:pid/kill',auth[_0xe9fd('0x4')](),controller[_0xe9fd('0x6')]);module['exports']=router;