Built motion from commit (unavailable).|2.4.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 _0x8f5b=['get','isAuthenticated','/:id','show','post','create','delete','destroy','exports','express','Router'];(function(_0x28fe13,_0xe15216){var _0x33b858=function(_0x1167ac){while(--_0x1167ac){_0x28fe13['push'](_0x28fe13['shift']());}};_0x33b858(++_0xe15216);}(_0x8f5b,0x148));var _0xb8f5=function(_0x5c4aff,_0x8483ea){_0x5c4aff=_0x5c4aff-0x0;var _0x660184=_0x8f5b[_0x5c4aff];return _0x660184;};'use strict';var express=require(_0xb8f5('0x0'));var router=express[_0xb8f5('0x1')]();var auth=require('../../components/auth/service');var controller=require('./pm2.controller');router[_0xb8f5('0x2')]('/',auth[_0xb8f5('0x3')](),controller['index']);router[_0xb8f5('0x2')](_0xb8f5('0x4'),auth[_0xb8f5('0x3')](),controller[_0xb8f5('0x5')]);router[_0xb8f5('0x6')]('/',auth[_0xb8f5('0x3')](),controller[_0xb8f5('0x7')]);router['put'](_0xb8f5('0x4'),auth[_0xb8f5('0x3')](),controller['update']);router[_0xb8f5('0x8')](_0xb8f5('0x4'),auth['isAuthenticated'](),controller[_0xb8f5('0x9')]);module[_0xb8f5('0xa')]=router;