06a05190b3beee61b36902e3bd8559515442cacb
[motion2.git] / server / api / pm2 / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xcbfb=['destroy','exports','express','../../components/auth/service','get','index','/:id','isAuthenticated','show','post','create','put','update','delete'];(function(_0x53ddab,_0x4ada9d){var _0x5819ac=function(_0x4d5fc8){while(--_0x4d5fc8){_0x53ddab['push'](_0x53ddab['shift']());}};_0x5819ac(++_0x4ada9d);}(_0xcbfb,0x1a6));var _0xbcbf=function(_0xbaad55,_0x30b4c6){_0xbaad55=_0xbaad55-0x0;var _0x3e8ef3=_0xcbfb[_0xbaad55];return _0x3e8ef3;};'use strict';var express=require(_0xbcbf('0x0'));var router=express['Router']();var auth=require(_0xbcbf('0x1'));var controller=require('./pm2.controller');router[_0xbcbf('0x2')]('/',auth['isAuthenticated'](),controller[_0xbcbf('0x3')]);router[_0xbcbf('0x2')](_0xbcbf('0x4'),auth[_0xbcbf('0x5')](),controller[_0xbcbf('0x6')]);router[_0xbcbf('0x7')]('/',auth[_0xbcbf('0x5')](),controller[_0xbcbf('0x8')]);router[_0xbcbf('0x9')]('/:id',auth[_0xbcbf('0x5')](),controller[_0xbcbf('0xa')]);router[_0xbcbf('0xb')](_0xbcbf('0x4'),auth[_0xbcbf('0x5')](),controller[_0xbcbf('0xc')]);module[_0xbcbf('0xd')]=router;