0562211a95e81d1c8667b9800d98389c53015aa6
[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 _0x73ad=['exports','express','Router','../../components/auth/service','get','isAuthenticated','/:id','show','post','create','put','update','delete','destroy'];(function(_0x32b2d1,_0xa0b952){var _0x32a019=function(_0x3b2600){while(--_0x3b2600){_0x32b2d1['push'](_0x32b2d1['shift']());}};_0x32a019(++_0xa0b952);}(_0x73ad,0x1eb));var _0xd73a=function(_0x3aa808,_0x7b5343){_0x3aa808=_0x3aa808-0x0;var _0x58b883=_0x73ad[_0x3aa808];return _0x58b883;};'use strict';var express=require(_0xd73a('0x0'));var router=express[_0xd73a('0x1')]();var auth=require(_0xd73a('0x2'));var controller=require('./pm2.controller');router[_0xd73a('0x3')]('/',auth[_0xd73a('0x4')](),controller['index']);router[_0xd73a('0x3')](_0xd73a('0x5'),auth[_0xd73a('0x4')](),controller[_0xd73a('0x6')]);router[_0xd73a('0x7')]('/',auth[_0xd73a('0x4')](),controller[_0xd73a('0x8')]);router[_0xd73a('0x9')](_0xd73a('0x5'),auth[_0xd73a('0x4')](),controller[_0xd73a('0xa')]);router[_0xd73a('0xb')](_0xd73a('0x5'),auth['isAuthenticated'](),controller[_0xd73a('0xc')]);module[_0xd73a('0xd')]=router;