1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x79b9=['Router','index','get','isAuthenticated','show','put','/:id','update','delete','express'];(function(_0x3db443,_0x159906){var _0x72c74f=function(_0x42217d){while(--_0x42217d){_0x3db443['push'](_0x3db443['shift']());}};_0x72c74f(++_0x159906);}(_0x79b9,0x1cb));var _0x979b=function(_0x57fc2a,_0x14bbe5){_0x57fc2a=_0x57fc2a-0x0;var _0xa839b=_0x79b9[_0x57fc2a];return _0xa839b;};'use strict';var express=require(_0x979b('0x0'));var router=express[_0x979b('0x1')]();var auth=require('../../components/auth/service');var controller=require('./pm2.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x979b('0x2')]);router[_0x979b('0x3')]('/:id',auth[_0x979b('0x4')](),controller[_0x979b('0x5')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x979b('0x6')](_0x979b('0x7'),auth[_0x979b('0x4')](),controller[_0x979b('0x8')]);router[_0x979b('0x9')](_0x979b('0x7'),auth[_0x979b('0x4')](),controller['destroy']);module['exports']=router;