fea30440a73b5215d54d26380eb35467c659c938
[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 _0x1de9=['create','update','delete','destroy','Router','get','isAuthenticated','index','/:id','show','post'];(function(_0x1d05eb,_0x56945f){var _0x5bfc46=function(_0x23ddf1){while(--_0x23ddf1){_0x1d05eb['push'](_0x1d05eb['shift']());}};_0x5bfc46(++_0x56945f);}(_0x1de9,0x138));var _0x91de=function(_0x56f274,_0x5c8379){_0x56f274=_0x56f274-0x0;var _0x10ddda=_0x1de9[_0x56f274];return _0x10ddda;};'use strict';var express=require('express');var router=express[_0x91de('0x0')]();var auth=require('../../components/auth/service');var controller=require('./pm2.controller');router[_0x91de('0x1')]('/',auth[_0x91de('0x2')](),controller[_0x91de('0x3')]);router['get'](_0x91de('0x4'),auth['isAuthenticated'](),controller[_0x91de('0x5')]);router[_0x91de('0x6')]('/',auth['isAuthenticated'](),controller[_0x91de('0x7')]);router['put'](_0x91de('0x4'),auth[_0x91de('0x2')](),controller[_0x91de('0x8')]);router[_0x91de('0x9')](_0x91de('0x4'),auth[_0x91de('0x2')](),controller[_0x91de('0xa')]);module['exports']=router;