f5e3fde8f488c153cb1367e9c2f083e10b3bc99f
[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 _0x76c0=['../../components/auth/service','./pm2.controller','get','isAuthenticated','index','/:id','show','post','create','put','update','delete','destroy'];(function(_0x8e8004,_0x2a4678){var _0xd4bf31=function(_0x39d468){while(--_0x39d468){_0x8e8004['push'](_0x8e8004['shift']());}};_0xd4bf31(++_0x2a4678);}(_0x76c0,0x11e));var _0x076c=function(_0xabbc52,_0x5ae0bb){_0xabbc52=_0xabbc52-0x0;var _0x1fb91c=_0x76c0[_0xabbc52];return _0x1fb91c;};'use strict';var express=require('express');var router=express['Router']();var auth=require(_0x076c('0x0'));var controller=require(_0x076c('0x1'));router[_0x076c('0x2')]('/',auth[_0x076c('0x3')](),controller[_0x076c('0x4')]);router[_0x076c('0x2')](_0x076c('0x5'),auth[_0x076c('0x3')](),controller[_0x076c('0x6')]);router[_0x076c('0x7')]('/',auth[_0x076c('0x3')](),controller[_0x076c('0x8')]);router[_0x076c('0x9')](_0x076c('0x5'),auth['isAuthenticated'](),controller[_0x076c('0xa')]);router[_0x076c('0xb')](_0x076c('0x5'),auth[_0x076c('0x3')](),controller[_0x076c('0xc')]);module['exports']=router;