60f3e4db862b44007be0aacd0835805ccb72147d
[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 _0x1ae6=['show','post','create','put','delete','destroy','exports','express','isAuthenticated','/:id'];(function(_0x24d7b9,_0x1e6738){var _0xa42ce4=function(_0x22469e){while(--_0x22469e){_0x24d7b9['push'](_0x24d7b9['shift']());}};_0xa42ce4(++_0x1e6738);}(_0x1ae6,0xa7));var _0x61ae=function(_0x2b10c6,_0x185590){_0x2b10c6=_0x2b10c6-0x0;var _0x3789d2=_0x1ae6[_0x2b10c6];return _0x3789d2;};'use strict';var express=require(_0x61ae('0x0'));var router=express['Router']();var auth=require('../../components/auth/service');var controller=require('./pm2.controller');router['get']('/',auth[_0x61ae('0x1')](),controller['index']);router['get'](_0x61ae('0x2'),auth['isAuthenticated'](),controller[_0x61ae('0x3')]);router[_0x61ae('0x4')]('/',auth[_0x61ae('0x1')](),controller[_0x61ae('0x5')]);router[_0x61ae('0x6')](_0x61ae('0x2'),auth['isAuthenticated'](),controller['update']);router[_0x61ae('0x7')](_0x61ae('0x2'),auth[_0x61ae('0x1')](),controller[_0x61ae('0x8')]);module[_0x61ae('0x9')]=router;