Built motion from commit (unavailable).|2.5.0
[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 _0x3ce2=['get','isAuthenticated','index','show','post','create','put','/:id','update','delete','exports','express','Router','../../components/auth/service','./pm2.controller'];(function(_0xdc56d3,_0x1de52d){var _0x597b04=function(_0x1d1ef5){while(--_0x1d1ef5){_0xdc56d3['push'](_0xdc56d3['shift']());}};_0x597b04(++_0x1de52d);}(_0x3ce2,0xbf));var _0x23ce=function(_0x74892f,_0x1e981b){_0x74892f=_0x74892f-0x0;var _0x10ee61=_0x3ce2[_0x74892f];return _0x10ee61;};'use strict';var express=require(_0x23ce('0x0'));var router=express[_0x23ce('0x1')]();var auth=require(_0x23ce('0x2'));var controller=require(_0x23ce('0x3'));router[_0x23ce('0x4')]('/',auth[_0x23ce('0x5')](),controller[_0x23ce('0x6')]);router[_0x23ce('0x4')]('/:id',auth['isAuthenticated'](),controller[_0x23ce('0x7')]);router[_0x23ce('0x8')]('/',auth[_0x23ce('0x5')](),controller[_0x23ce('0x9')]);router[_0x23ce('0xa')](_0x23ce('0xb'),auth[_0x23ce('0x5')](),controller[_0x23ce('0xc')]);router[_0x23ce('0xd')](_0x23ce('0xb'),auth[_0x23ce('0x5')](),controller['destroy']);module[_0x23ce('0xe')]=router;