558547fad90ca0c15dca4f90f7bdaa826cb4e93b
[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 _0xb3d0=['index','/:id','isAuthenticated','post','create','update','destroy','express','Router','../../components/auth/service','./pm2.controller','get'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0xb3d0,0x127));var _0x0b3d=function(_0x25c787,_0x5a02d4){_0x25c787=_0x25c787-0x0;var _0x428aba=_0xb3d0[_0x25c787];return _0x428aba;};'use strict';var express=require(_0x0b3d('0x0'));var router=express[_0x0b3d('0x1')]();var auth=require(_0x0b3d('0x2'));var controller=require(_0x0b3d('0x3'));router[_0x0b3d('0x4')]('/',auth['isAuthenticated'](),controller[_0x0b3d('0x5')]);router['get'](_0x0b3d('0x6'),auth[_0x0b3d('0x7')](),controller['show']);router[_0x0b3d('0x8')]('/',auth[_0x0b3d('0x7')](),controller[_0x0b3d('0x9')]);router['put'](_0x0b3d('0x6'),auth['isAuthenticated'](),controller[_0x0b3d('0xa')]);router['delete']('/:id',auth[_0x0b3d('0x7')](),controller[_0x0b3d('0xb')]);module['exports']=router;