Built motion from commit (unavailable).|2.5.16
[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 _0x013e=['post','create','put','update','delete','exports','express','Router','../../components/auth/service','./pm2.controller','get','isAuthenticated','index','/:id','show'];(function(_0x4a3de1,_0x930434){var _0x51fbde=function(_0x1b65ed){while(--_0x1b65ed){_0x4a3de1['push'](_0x4a3de1['shift']());}};_0x51fbde(++_0x930434);}(_0x013e,0xba));var _0xe013=function(_0x511bd1,_0x223e5b){_0x511bd1=_0x511bd1-0x0;var _0x4c48ec=_0x013e[_0x511bd1];return _0x4c48ec;};'use strict';var express=require(_0xe013('0x0'));var router=express[_0xe013('0x1')]();var auth=require(_0xe013('0x2'));var controller=require(_0xe013('0x3'));router[_0xe013('0x4')]('/',auth[_0xe013('0x5')](),controller[_0xe013('0x6')]);router['get'](_0xe013('0x7'),auth[_0xe013('0x5')](),controller[_0xe013('0x8')]);router[_0xe013('0x9')]('/',auth['isAuthenticated'](),controller[_0xe013('0xa')]);router[_0xe013('0xb')](_0xe013('0x7'),auth['isAuthenticated'](),controller[_0xe013('0xc')]);router[_0xe013('0xd')](_0xe013('0x7'),auth[_0xe013('0x5')](),controller['destroy']);module[_0xe013('0xe')]=router;