Built motion from commit (unavailable).|2.5.5
[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 _0x3d41=['./pm2.controller','get','isAuthenticated','index','/:id','post','create','put','delete','exports','express','Router','../../components/auth/service'];(function(_0x2fdce0,_0x496242){var _0x36f07e=function(_0x44c8c6){while(--_0x44c8c6){_0x2fdce0['push'](_0x2fdce0['shift']());}};_0x36f07e(++_0x496242);}(_0x3d41,0x128));var _0x13d4=function(_0x8b631b,_0x386724){_0x8b631b=_0x8b631b-0x0;var _0x3e6832=_0x3d41[_0x8b631b];return _0x3e6832;};'use strict';var express=require(_0x13d4('0x0'));var router=express[_0x13d4('0x1')]();var auth=require(_0x13d4('0x2'));var controller=require(_0x13d4('0x3'));router[_0x13d4('0x4')]('/',auth[_0x13d4('0x5')](),controller[_0x13d4('0x6')]);router['get'](_0x13d4('0x7'),auth[_0x13d4('0x5')](),controller['show']);router[_0x13d4('0x8')]('/',auth['isAuthenticated'](),controller[_0x13d4('0x9')]);router[_0x13d4('0xa')]('/:id',auth[_0x13d4('0x5')](),controller['update']);router[_0x13d4('0xb')](_0x13d4('0x7'),auth['isAuthenticated'](),controller['destroy']);module[_0x13d4('0xc')]=router;