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 _0x13d3=['get','isAuthenticated','show','post','create','put','/:id','exports','express','Router','./pm2.controller'];(function(_0x20c74d,_0x11a4a2){var _0xebf8db=function(_0x199496){while(--_0x199496){_0x20c74d['push'](_0x20c74d['shift']());}};_0xebf8db(++_0x11a4a2);}(_0x13d3,0x1d6));var _0x313d=function(_0x46eb54,_0x4f1eac){_0x46eb54=_0x46eb54-0x0;var _0x3902b2=_0x13d3[_0x46eb54];return _0x3902b2;};'use strict';var express=require(_0x313d('0x0'));var router=express[_0x313d('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x313d('0x2'));router[_0x313d('0x3')]('/',auth[_0x313d('0x4')](),controller['index']);router[_0x313d('0x3')]('/:id',auth['isAuthenticated'](),controller[_0x313d('0x5')]);router[_0x313d('0x6')]('/',auth['isAuthenticated'](),controller[_0x313d('0x7')]);router[_0x313d('0x8')](_0x313d('0x9'),auth[_0x313d('0x4')](),controller['update']);router['delete'](_0x313d('0x9'),auth[_0x313d('0x4')](),controller['destroy']);module[_0x313d('0xa')]=router;