Built motion from commit (unavailable).|2.5.4
[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 _0x62e6=['get','show','post','put','update','/:id','destroy','express','Router','../../components/auth/service','./pm2.controller','isAuthenticated','index'];(function(_0x21aec3,_0x5c97e9){var _0x288bbc=function(_0x2283fe){while(--_0x2283fe){_0x21aec3['push'](_0x21aec3['shift']());}};_0x288bbc(++_0x5c97e9);}(_0x62e6,0x1db));var _0x662e=function(_0x51b169,_0x5efbc2){_0x51b169=_0x51b169-0x0;var _0x12605a=_0x62e6[_0x51b169];return _0x12605a;};'use strict';var express=require(_0x662e('0x0'));var router=express[_0x662e('0x1')]();var auth=require(_0x662e('0x2'));var controller=require(_0x662e('0x3'));router['get']('/',auth[_0x662e('0x4')](),controller[_0x662e('0x5')]);router[_0x662e('0x6')]('/:id',auth[_0x662e('0x4')](),controller[_0x662e('0x7')]);router[_0x662e('0x8')]('/',auth[_0x662e('0x4')](),controller['create']);router[_0x662e('0x9')]('/:id',auth[_0x662e('0x4')](),controller[_0x662e('0xa')]);router['delete'](_0x662e('0xb'),auth['isAuthenticated'](),controller[_0x662e('0xc')]);module['exports']=router;