de7276f8224b6275c2f46b59576d7af51d160ec1
[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 _0xd8c7=['get','isAuthenticated','/:id','show','put','delete','exports','express','../../components/auth/service'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xd8c7,0x11e));var _0x7d8c=function(_0x1b9edd,_0x66b166){_0x1b9edd=_0x1b9edd-0x0;var _0x4907c4=_0xd8c7[_0x1b9edd];return _0x4907c4;};'use strict';var express=require(_0x7d8c('0x0'));var router=express['Router']();var auth=require(_0x7d8c('0x1'));var controller=require('./pm2.controller');router[_0x7d8c('0x2')]('/',auth[_0x7d8c('0x3')](),controller['index']);router[_0x7d8c('0x2')](_0x7d8c('0x4'),auth[_0x7d8c('0x3')](),controller[_0x7d8c('0x5')]);router['post']('/',auth[_0x7d8c('0x3')](),controller['create']);router[_0x7d8c('0x6')](_0x7d8c('0x4'),auth['isAuthenticated'](),controller['update']);router[_0x7d8c('0x7')](_0x7d8c('0x4'),auth[_0x7d8c('0x3')](),controller['destroy']);module[_0x7d8c('0x8')]=router;