Built motion from commit (unavailable).|2.5.15
[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 _0x112e=['delete','destroy','exports','express','Router','./pm2.controller','get','isAuthenticated','index','/:id','show','post','create','put'];(function(_0x5f309e,_0x66e31){var _0x487b5e=function(_0x44f203){while(--_0x44f203){_0x5f309e['push'](_0x5f309e['shift']());}};_0x487b5e(++_0x66e31);}(_0x112e,0x8f));var _0xe112=function(_0x2f6541,_0x363cba){_0x2f6541=_0x2f6541-0x0;var _0x4d76d8=_0x112e[_0x2f6541];return _0x4d76d8;};'use strict';var express=require(_0xe112('0x0'));var router=express[_0xe112('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0xe112('0x2'));router[_0xe112('0x3')]('/',auth[_0xe112('0x4')](),controller[_0xe112('0x5')]);router[_0xe112('0x3')](_0xe112('0x6'),auth[_0xe112('0x4')](),controller[_0xe112('0x7')]);router[_0xe112('0x8')]('/',auth['isAuthenticated'](),controller[_0xe112('0x9')]);router[_0xe112('0xa')](_0xe112('0x6'),auth[_0xe112('0x4')](),controller['update']);router[_0xe112('0xb')]('/:id',auth[_0xe112('0x4')](),controller[_0xe112('0xc')]);module[_0xe112('0xd')]=router;