513adb870a10ac51470c7a77ad16916790262640
[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 _0xce84=['isAuthenticated','index','/:id','show','update','destroy','exports','express','../../components/auth/service','./pm2.controller','get'];(function(_0x396f00,_0xe41988){var _0x27aeab=function(_0x1ca5c9){while(--_0x1ca5c9){_0x396f00['push'](_0x396f00['shift']());}};_0x27aeab(++_0xe41988);}(_0xce84,0xb7));var _0x4ce8=function(_0x3f5f2a,_0x536aa3){_0x3f5f2a=_0x3f5f2a-0x0;var _0x3ca36b=_0xce84[_0x3f5f2a];return _0x3ca36b;};'use strict';var express=require(_0x4ce8('0x0'));var router=express['Router']();var auth=require(_0x4ce8('0x1'));var controller=require(_0x4ce8('0x2'));router[_0x4ce8('0x3')]('/',auth[_0x4ce8('0x4')](),controller[_0x4ce8('0x5')]);router['get'](_0x4ce8('0x6'),auth['isAuthenticated'](),controller[_0x4ce8('0x7')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x4ce8('0x6'),auth[_0x4ce8('0x4')](),controller[_0x4ce8('0x8')]);router['delete'](_0x4ce8('0x6'),auth[_0x4ce8('0x4')](),controller[_0x4ce8('0x9')]);module[_0x4ce8('0xa')]=router;