755e755cf18c23776a09dff56692977e5f029328
[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 _0x6e19=['delete','destroy','exports','Router','../../components/auth/service','./pm2.controller','get','isAuthenticated','index','create','put','/:id','update'];(function(_0x923ab6,_0x200ec5){var _0x484752=function(_0x266328){while(--_0x266328){_0x923ab6['push'](_0x923ab6['shift']());}};_0x484752(++_0x200ec5);}(_0x6e19,0xe0));var _0x96e1=function(_0x447140,_0x207ce8){_0x447140=_0x447140-0x0;var _0x2b8453=_0x6e19[_0x447140];return _0x2b8453;};'use strict';var express=require('express');var router=express[_0x96e1('0x0')]();var auth=require(_0x96e1('0x1'));var controller=require(_0x96e1('0x2'));router[_0x96e1('0x3')]('/',auth[_0x96e1('0x4')](),controller[_0x96e1('0x5')]);router[_0x96e1('0x3')]('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x96e1('0x4')](),controller[_0x96e1('0x6')]);router[_0x96e1('0x7')](_0x96e1('0x8'),auth[_0x96e1('0x4')](),controller[_0x96e1('0x9')]);router[_0x96e1('0xa')]('/:id',auth[_0x96e1('0x4')](),controller[_0x96e1('0xb')]);module[_0x96e1('0xc')]=router;