Built motion from commit (unavailable).|2.5.2
[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 _0x1627=['post','put','update','delete','exports','express','Router','../../components/auth/service','index','get','/:id','isAuthenticated','show'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x1627,0x171));var _0x7162=function(_0x4dc023,_0x15e381){_0x4dc023=_0x4dc023-0x0;var _0x147063=_0x1627[_0x4dc023];return _0x147063;};'use strict';var express=require(_0x7162('0x0'));var router=express[_0x7162('0x1')]();var auth=require(_0x7162('0x2'));var controller=require('./pm2.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x7162('0x3')]);router[_0x7162('0x4')](_0x7162('0x5'),auth[_0x7162('0x6')](),controller[_0x7162('0x7')]);router[_0x7162('0x8')]('/',auth[_0x7162('0x6')](),controller['create']);router[_0x7162('0x9')](_0x7162('0x5'),auth['isAuthenticated'](),controller[_0x7162('0xa')]);router[_0x7162('0xb')]('/:id',auth[_0x7162('0x6')](),controller['destroy']);module[_0x7162('0xc')]=router;