Built motion from commit (unavailable).|2.5.17
[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 _0xd1d5=['exports','Router','../../components/auth/service','./pm2.controller','get','isAuthenticated','index','/:id','show','post','create','put','update','delete','destroy'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xd1d5,0x1a5));var _0x5d1d=function(_0x13ea00,_0x12f610){_0x13ea00=_0x13ea00-0x0;var _0x1f7347=_0xd1d5[_0x13ea00];return _0x1f7347;};'use strict';var express=require('express');var router=express[_0x5d1d('0x0')]();var auth=require(_0x5d1d('0x1'));var controller=require(_0x5d1d('0x2'));router[_0x5d1d('0x3')]('/',auth[_0x5d1d('0x4')](),controller[_0x5d1d('0x5')]);router[_0x5d1d('0x3')](_0x5d1d('0x6'),auth[_0x5d1d('0x4')](),controller[_0x5d1d('0x7')]);router[_0x5d1d('0x8')]('/',auth[_0x5d1d('0x4')](),controller[_0x5d1d('0x9')]);router[_0x5d1d('0xa')](_0x5d1d('0x6'),auth['isAuthenticated'](),controller[_0x5d1d('0xb')]);router[_0x5d1d('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x5d1d('0xd')]);module[_0x5d1d('0xe')]=router;