7ea3d5fb8d2a48937c6002cd247060d867d0d749
[motion2.git] / server / api / userProfileResource / 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 _0x6a3a=['/describe','post','create','put','/:id','update','delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileResource.controller','get','isAuthenticated'];(function(_0x4ae6ef,_0xc2af80){var _0x3cbb4e=function(_0x569ad5){while(--_0x569ad5){_0x4ae6ef['push'](_0x4ae6ef['shift']());}};_0x3cbb4e(++_0xc2af80);}(_0x6a3a,0x1ad));var _0xa6a3=function(_0x4b73a2,_0x40b5fe){_0x4b73a2=_0x4b73a2-0x0;var _0x383c66=_0x6a3a[_0x4b73a2];return _0x383c66;};'use strict';var multer=require(_0xa6a3('0x0'));var util=require(_0xa6a3('0x1'));var path=require(_0xa6a3('0x2'));var timeout=require('connect-timeout');var express=require(_0xa6a3('0x3'));var router=express[_0xa6a3('0x4')]();var fs_extra=require(_0xa6a3('0x5'));var auth=require(_0xa6a3('0x6'));var interaction=require(_0xa6a3('0x7'));var config=require(_0xa6a3('0x8'));var controller=require(_0xa6a3('0x9'));router[_0xa6a3('0xa')]('/',auth[_0xa6a3('0xb')](),controller['index']);router['get'](_0xa6a3('0xc'),auth[_0xa6a3('0xb')](),controller['describe']);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0xa6a3('0xd')]('/',auth[_0xa6a3('0xb')](),controller[_0xa6a3('0xe')]);router[_0xa6a3('0xf')](_0xa6a3('0x10'),auth[_0xa6a3('0xb')](),controller[_0xa6a3('0x11')]);router[_0xa6a3('0x12')](_0xa6a3('0x10'),auth[_0xa6a3('0xb')](),controller[_0xa6a3('0x13')]);module[_0xa6a3('0x14')]=router;