Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / api / pm2 / 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 _0xa30a=['express','../../components/auth/service','get','isAuthenticated','index','show','post','put','update','/:id','exports'];(function(_0x411017,_0x4a8117){var _0x2adeea=function(_0x545222){while(--_0x545222){_0x411017['push'](_0x411017['shift']());}};_0x2adeea(++_0x4a8117);}(_0xa30a,0xbb));var _0xaa30=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xa30a[_0x20a584];return _0x4b41a8;};'use strict';var express=require(_0xaa30('0x0'));var router=express['Router']();var auth=require(_0xaa30('0x1'));var controller=require('./pm2.controller');router[_0xaa30('0x2')]('/',auth[_0xaa30('0x3')](),controller[_0xaa30('0x4')]);router[_0xaa30('0x2')]('/:id',auth[_0xaa30('0x3')](),controller[_0xaa30('0x5')]);router[_0xaa30('0x6')]('/',auth[_0xaa30('0x3')](),controller['create']);router[_0xaa30('0x7')]('/:id',auth[_0xaa30('0x3')](),controller[_0xaa30('0x8')]);router['delete'](_0xaa30('0x9'),auth[_0xaa30('0x3')](),controller['destroy']);module[_0xaa30('0xa')]=router;