29987d07fec3584b53e138b08e2afad67db73ae8
[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 _0x5449=['destroy','exports','Router','index','isAuthenticated','post','create','put','/:id','update'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0x5449,0xd4));var _0x9544=function(_0x2e2681,_0x4089c1){_0x2e2681=_0x2e2681-0x0;var _0x368a64=_0x5449[_0x2e2681];return _0x368a64;};'use strict';var express=require('express');var router=express[_0x9544('0x0')]();var auth=require('../../components/auth/service');var controller=require('./pm2.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x9544('0x1')]);router['get']('/:id',auth[_0x9544('0x2')](),controller['show']);router[_0x9544('0x3')]('/',auth['isAuthenticated'](),controller[_0x9544('0x4')]);router[_0x9544('0x5')](_0x9544('0x6'),auth[_0x9544('0x2')](),controller[_0x9544('0x7')]);router['delete'](_0x9544('0x6'),auth[_0x9544('0x2')](),controller[_0x9544('0x8')]);module[_0x9544('0x9')]=router;