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 _0x6a91=['create','update','delete','destroy','exports','express','Router','../../components/auth/service','./pm2.controller','get','isAuthenticated','index','/:id'];(function(_0x283274,_0x46c464){var _0x4b0fce=function(_0x41ed25){while(--_0x41ed25){_0x283274['push'](_0x283274['shift']());}};_0x4b0fce(++_0x46c464);}(_0x6a91,0x116));var _0x16a9=function(_0x4bf27c,_0x169395){_0x4bf27c=_0x4bf27c-0x0;var _0x40de7c=_0x6a91[_0x4bf27c];return _0x40de7c;};'use strict';var express=require(_0x16a9('0x0'));var router=express[_0x16a9('0x1')]();var auth=require(_0x16a9('0x2'));var controller=require(_0x16a9('0x3'));router[_0x16a9('0x4')]('/',auth[_0x16a9('0x5')](),controller[_0x16a9('0x6')]);router[_0x16a9('0x4')](_0x16a9('0x7'),auth[_0x16a9('0x5')](),controller['show']);router['post']('/',auth[_0x16a9('0x5')](),controller[_0x16a9('0x8')]);router['put'](_0x16a9('0x7'),auth[_0x16a9('0x5')](),controller[_0x16a9('0x9')]);router[_0x16a9('0xa')](_0x16a9('0x7'),auth[_0x16a9('0x5')](),controller[_0x16a9('0xb')]);module[_0x16a9('0xc')]=router;