Built motion from commit (unavailable).|2.5.30
[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 _0x9762=['/:id','post','put','update','delete','destroy','exports','express','Router','./pm2.controller','isAuthenticated','index','get'];(function(_0x34021d,_0x753aa6){var _0x16597b=function(_0x2d040a){while(--_0x2d040a){_0x34021d['push'](_0x34021d['shift']());}};_0x16597b(++_0x753aa6);}(_0x9762,0x1db));var _0x2976=function(_0x2d865e,_0x1f0e3e){_0x2d865e=_0x2d865e-0x0;var _0x48f8f5=_0x9762[_0x2d865e];return _0x48f8f5;};'use strict';var express=require(_0x2976('0x0'));var router=express[_0x2976('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x2976('0x2'));router['get']('/',auth[_0x2976('0x3')](),controller[_0x2976('0x4')]);router[_0x2976('0x5')](_0x2976('0x6'),auth[_0x2976('0x3')](),controller['show']);router[_0x2976('0x7')]('/',auth[_0x2976('0x3')](),controller['create']);router[_0x2976('0x8')](_0x2976('0x6'),auth[_0x2976('0x3')](),controller[_0x2976('0x9')]);router[_0x2976('0xa')]('/:id',auth[_0x2976('0x3')](),controller[_0x2976('0xb')]);module[_0x2976('0xc')]=router;