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 _0x1eb8=['post','create','update','delete','destroy','express','Router','./pm2.controller','get','isAuthenticated','index','/:id'];(function(_0x51ba9a,_0x3c5fb7){var _0x25eed7=function(_0x5c9a66){while(--_0x5c9a66){_0x51ba9a['push'](_0x51ba9a['shift']());}};_0x25eed7(++_0x3c5fb7);}(_0x1eb8,0x1d9));var _0x81eb=function(_0x485e18,_0x3cf9d2){_0x485e18=_0x485e18-0x0;var _0x39d516=_0x1eb8[_0x485e18];return _0x39d516;};'use strict';var express=require(_0x81eb('0x0'));var router=express[_0x81eb('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x81eb('0x2'));router[_0x81eb('0x3')]('/',auth[_0x81eb('0x4')](),controller[_0x81eb('0x5')]);router['get'](_0x81eb('0x6'),auth[_0x81eb('0x4')](),controller['show']);router[_0x81eb('0x7')]('/',auth['isAuthenticated'](),controller[_0x81eb('0x8')]);router['put'](_0x81eb('0x6'),auth[_0x81eb('0x4')](),controller[_0x81eb('0x9')]);router[_0x81eb('0xa')](_0x81eb('0x6'),auth[_0x81eb('0x4')](),controller[_0x81eb('0xb')]);module['exports']=router;