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 _0x5a4a=['exports','express','../../components/auth/service','./pm2.controller','isAuthenticated','index','get','/:id','show','put','update'];(function(_0x5c8dbf,_0x25b975){var _0x186cb0=function(_0x123680){while(--_0x123680){_0x5c8dbf['push'](_0x5c8dbf['shift']());}};_0x186cb0(++_0x25b975);}(_0x5a4a,0xd2));var _0xa5a4=function(_0x321e34,_0x19486b){_0x321e34=_0x321e34-0x0;var _0x5e774d=_0x5a4a[_0x321e34];return _0x5e774d;};'use strict';var express=require(_0xa5a4('0x0'));var router=express['Router']();var auth=require(_0xa5a4('0x1'));var controller=require(_0xa5a4('0x2'));router['get']('/',auth[_0xa5a4('0x3')](),controller[_0xa5a4('0x4')]);router[_0xa5a4('0x5')](_0xa5a4('0x6'),auth[_0xa5a4('0x3')](),controller[_0xa5a4('0x7')]);router['post']('/',auth[_0xa5a4('0x3')](),controller['create']);router[_0xa5a4('0x8')](_0xa5a4('0x6'),auth[_0xa5a4('0x3')](),controller[_0xa5a4('0x9')]);router['delete'](_0xa5a4('0x6'),auth[_0xa5a4('0x3')](),controller['destroy']);module[_0xa5a4('0xa')]=router;