Built motion from commit (unavailable).|2.5.6
[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 _0xc6ce=['index','/:id','isAuthenticated','post','update','delete','exports','Router','../../components/auth/service','./pm2.controller'];(function(_0xcc5800,_0xcb9f25){var _0x8bdca7=function(_0x586323){while(--_0x586323){_0xcc5800['push'](_0xcc5800['shift']());}};_0x8bdca7(++_0xcb9f25);}(_0xc6ce,0xb1));var _0xec6c=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc6ce[_0x3dd15e];return _0x231fd0;};'use strict';var express=require('express');var router=express[_0xec6c('0x0')]();var auth=require(_0xec6c('0x1'));var controller=require(_0xec6c('0x2'));router['get']('/',auth['isAuthenticated'](),controller[_0xec6c('0x3')]);router['get'](_0xec6c('0x4'),auth[_0xec6c('0x5')](),controller['show']);router[_0xec6c('0x6')]('/',auth[_0xec6c('0x5')](),controller['create']);router['put']('/:id',auth[_0xec6c('0x5')](),controller[_0xec6c('0x7')]);router[_0xec6c('0x8')](_0xec6c('0x4'),auth[_0xec6c('0x5')](),controller['destroy']);module[_0xec6c('0x9')]=router;