Built motion from commit (unavailable).|2.5.31
[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 _0xd9ff=['../../components/auth/service','./pm2.controller','get','isAuthenticated','index','/:id','show','create','put','update','delete','exports','express','Router'];(function(_0x4ceba6,_0x4f045b){var _0x3e2a03=function(_0x57f601){while(--_0x57f601){_0x4ceba6['push'](_0x4ceba6['shift']());}};_0x3e2a03(++_0x4f045b);}(_0xd9ff,0x178));var _0xfd9f=function(_0x2090ef,_0x58b14a){_0x2090ef=_0x2090ef-0x0;var _0x2f455a=_0xd9ff[_0x2090ef];return _0x2f455a;};'use strict';var express=require(_0xfd9f('0x0'));var router=express[_0xfd9f('0x1')]();var auth=require(_0xfd9f('0x2'));var controller=require(_0xfd9f('0x3'));router[_0xfd9f('0x4')]('/',auth[_0xfd9f('0x5')](),controller[_0xfd9f('0x6')]);router[_0xfd9f('0x4')](_0xfd9f('0x7'),auth[_0xfd9f('0x5')](),controller[_0xfd9f('0x8')]);router['post']('/',auth['isAuthenticated'](),controller[_0xfd9f('0x9')]);router[_0xfd9f('0xa')](_0xfd9f('0x7'),auth[_0xfd9f('0x5')](),controller[_0xfd9f('0xb')]);router[_0xfd9f('0xc')](_0xfd9f('0x7'),auth['isAuthenticated'](),controller['destroy']);module[_0xfd9f('0xd')]=router;