951d4bbc591ee20ec8c7930759cb50217f610421
[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 _0x3d6a=['index','/:id','show','create','put','update','destroy','exports','Router','../../components/auth/service','./pm2.controller','get','isAuthenticated'];(function(_0x1ebffe,_0x184696){var _0x353e6d=function(_0x23c583){while(--_0x23c583){_0x1ebffe['push'](_0x1ebffe['shift']());}};_0x353e6d(++_0x184696);}(_0x3d6a,0x140));var _0xa3d6=function(_0x2a7f45,_0x523045){_0x2a7f45=_0x2a7f45-0x0;var _0x100b11=_0x3d6a[_0x2a7f45];return _0x100b11;};'use strict';var express=require('express');var router=express[_0xa3d6('0x0')]();var auth=require(_0xa3d6('0x1'));var controller=require(_0xa3d6('0x2'));router[_0xa3d6('0x3')]('/',auth[_0xa3d6('0x4')](),controller[_0xa3d6('0x5')]);router[_0xa3d6('0x3')](_0xa3d6('0x6'),auth[_0xa3d6('0x4')](),controller[_0xa3d6('0x7')]);router['post']('/',auth[_0xa3d6('0x4')](),controller[_0xa3d6('0x8')]);router[_0xa3d6('0x9')]('/:id',auth[_0xa3d6('0x4')](),controller[_0xa3d6('0xa')]);router['delete']('/:id',auth[_0xa3d6('0x4')](),controller[_0xa3d6('0xb')]);module[_0xa3d6('0xc')]=router;