5bb6a0daff2ae79f79d8a94c96ee5c79c2676a03
[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 _0x2d21=['post','create','put','update','delete','/:id','destroy','exports','express','Router','../../components/auth/service','./pm2.controller','get','isAuthenticated','index'];(function(_0x16b9ed,_0x56517a){var _0x66b1f8=function(_0x1c883){while(--_0x1c883){_0x16b9ed['push'](_0x16b9ed['shift']());}};_0x66b1f8(++_0x56517a);}(_0x2d21,0x1e8));var _0x12d2=function(_0x3b20c2,_0x888661){_0x3b20c2=_0x3b20c2-0x0;var _0x5b4482=_0x2d21[_0x3b20c2];return _0x5b4482;};'use strict';var express=require(_0x12d2('0x0'));var router=express[_0x12d2('0x1')]();var auth=require(_0x12d2('0x2'));var controller=require(_0x12d2('0x3'));router[_0x12d2('0x4')]('/',auth[_0x12d2('0x5')](),controller[_0x12d2('0x6')]);router[_0x12d2('0x4')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x12d2('0x7')]('/',auth[_0x12d2('0x5')](),controller[_0x12d2('0x8')]);router[_0x12d2('0x9')]('/:id',auth[_0x12d2('0x5')](),controller[_0x12d2('0xa')]);router[_0x12d2('0xb')](_0x12d2('0xc'),auth[_0x12d2('0x5')](),controller[_0x12d2('0xd')]);module[_0x12d2('0xe')]=router;