Built motion from commit (unavailable).|2.5.9
[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 _0xcc72=['update','delete','destroy','exports','express','Router','./pm2.controller','index','get','isAuthenticated','show','post','put'];(function(_0x1b1dc7,_0x1483b8){var _0x20ef6f=function(_0x4e1623){while(--_0x4e1623){_0x1b1dc7['push'](_0x1b1dc7['shift']());}};_0x20ef6f(++_0x1483b8);}(_0xcc72,0x1f2));var _0x2cc7=function(_0x5b3fec,_0x4da3e5){_0x5b3fec=_0x5b3fec-0x0;var _0x1b8d28=_0xcc72[_0x5b3fec];return _0x1b8d28;};'use strict';var express=require(_0x2cc7('0x0'));var router=express[_0x2cc7('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x2cc7('0x2'));router['get']('/',auth['isAuthenticated'](),controller[_0x2cc7('0x3')]);router[_0x2cc7('0x4')]('/:id',auth[_0x2cc7('0x5')](),controller[_0x2cc7('0x6')]);router[_0x2cc7('0x7')]('/',auth[_0x2cc7('0x5')](),controller['create']);router[_0x2cc7('0x8')]('/:id',auth[_0x2cc7('0x5')](),controller[_0x2cc7('0x9')]);router[_0x2cc7('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x2cc7('0xb')]);module[_0x2cc7('0xc')]=router;