Built motion from commit (unavailable).|2.5.21
[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 _0xf39c=['/:id','show','post','create','put','delete','destroy','express','Router','../../components/auth/service','./pm2.controller','get','isAuthenticated','index'];(function(_0x1bd9ce,_0x533434){var _0x38d016=function(_0x53246c){while(--_0x53246c){_0x1bd9ce['push'](_0x1bd9ce['shift']());}};_0x38d016(++_0x533434);}(_0xf39c,0x165));var _0xcf39=function(_0x3f3347,_0x361c2f){_0x3f3347=_0x3f3347-0x0;var _0x29e8=_0xf39c[_0x3f3347];return _0x29e8;};'use strict';var express=require(_0xcf39('0x0'));var router=express[_0xcf39('0x1')]();var auth=require(_0xcf39('0x2'));var controller=require(_0xcf39('0x3'));router[_0xcf39('0x4')]('/',auth[_0xcf39('0x5')](),controller[_0xcf39('0x6')]);router['get'](_0xcf39('0x7'),auth[_0xcf39('0x5')](),controller[_0xcf39('0x8')]);router[_0xcf39('0x9')]('/',auth['isAuthenticated'](),controller[_0xcf39('0xa')]);router[_0xcf39('0xb')]('/:id',auth[_0xcf39('0x5')](),controller['update']);router[_0xcf39('0xc')]('/:id',auth[_0xcf39('0x5')](),controller[_0xcf39('0xd')]);module['exports']=router;