Built motion from commit (unavailable).|2.5.10
[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 _0x7dfb=['../../components/auth/service','./pm2.controller','get','index','/:id','isAuthenticated','show','post','create','put','update','destroy','exports'];(function(_0x1ce121,_0x3e6b64){var _0x1dfc68=function(_0x3cb0a8){while(--_0x3cb0a8){_0x1ce121['push'](_0x1ce121['shift']());}};_0x1dfc68(++_0x3e6b64);}(_0x7dfb,0x193));var _0xb7df=function(_0x8de54f,_0x271987){_0x8de54f=_0x8de54f-0x0;var _0x14cba4=_0x7dfb[_0x8de54f];return _0x14cba4;};'use strict';var express=require('express');var router=express['Router']();var auth=require(_0xb7df('0x0'));var controller=require(_0xb7df('0x1'));router[_0xb7df('0x2')]('/',auth['isAuthenticated'](),controller[_0xb7df('0x3')]);router['get'](_0xb7df('0x4'),auth[_0xb7df('0x5')](),controller[_0xb7df('0x6')]);router[_0xb7df('0x7')]('/',auth['isAuthenticated'](),controller[_0xb7df('0x8')]);router[_0xb7df('0x9')](_0xb7df('0x4'),auth[_0xb7df('0x5')](),controller[_0xb7df('0xa')]);router['delete'](_0xb7df('0x4'),auth[_0xb7df('0x5')](),controller[_0xb7df('0xb')]);module[_0xb7df('0xc')]=router;