Built motion from commit (unavailable).|2.5.13
[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 _0xf86f=['./pm2.controller','get','isAuthenticated','index','/:id','show','post','create','delete','exports','express','Router','../../components/auth/service'];(function(_0x40ac5e,_0x2de228){var _0x2839d6=function(_0x123d47){while(--_0x123d47){_0x40ac5e['push'](_0x40ac5e['shift']());}};_0x2839d6(++_0x2de228);}(_0xf86f,0xc0));var _0xff86=function(_0x35387d,_0x1ba72f){_0x35387d=_0x35387d-0x0;var _0x3aba56=_0xf86f[_0x35387d];return _0x3aba56;};'use strict';var express=require(_0xff86('0x0'));var router=express[_0xff86('0x1')]();var auth=require(_0xff86('0x2'));var controller=require(_0xff86('0x3'));router[_0xff86('0x4')]('/',auth[_0xff86('0x5')](),controller[_0xff86('0x6')]);router['get'](_0xff86('0x7'),auth['isAuthenticated'](),controller[_0xff86('0x8')]);router[_0xff86('0x9')]('/',auth['isAuthenticated'](),controller[_0xff86('0xa')]);router['put'](_0xff86('0x7'),auth[_0xff86('0x5')](),controller['update']);router[_0xff86('0xb')]('/:id',auth[_0xff86('0x5')](),controller['destroy']);module[_0xff86('0xc')]=router;