3ae0df5a009627bccddf682037fcb5c369dd7c70
[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 _0x8cdc=['update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./userProfileResource.controller','isAuthenticated','get','/describe','describe','post','create','put','/:id'];(function(_0x145f2a,_0x4ada83){var _0x592b89=function(_0x3ad8bf){while(--_0x3ad8bf){_0x145f2a['push'](_0x145f2a['shift']());}};_0x592b89(++_0x4ada83);}(_0x8cdc,0x1d2));var _0xc8cd=function(_0x50b3f3,_0x1824d2){_0x50b3f3=_0x50b3f3-0x0;var _0x14774a=_0x8cdc[_0x50b3f3];return _0x14774a;};'use strict';var multer=require(_0xc8cd('0x0'));var util=require(_0xc8cd('0x1'));var path=require(_0xc8cd('0x2'));var timeout=require(_0xc8cd('0x3'));var express=require(_0xc8cd('0x4'));var router=express[_0xc8cd('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xc8cd('0x6'));var config=require(_0xc8cd('0x7'));var controller=require(_0xc8cd('0x8'));router['get']('/',auth[_0xc8cd('0x9')](),controller['index']);router[_0xc8cd('0xa')](_0xc8cd('0xb'),auth[_0xc8cd('0x9')](),controller[_0xc8cd('0xc')]);router['get']('/:id',auth[_0xc8cd('0x9')](),controller['show']);router[_0xc8cd('0xd')]('/',auth[_0xc8cd('0x9')](),controller[_0xc8cd('0xe')]);router[_0xc8cd('0xf')](_0xc8cd('0x10'),auth[_0xc8cd('0x9')](),controller[_0xc8cd('0x11')]);router[_0xc8cd('0x12')]('/:id',auth['isAuthenticated'](),controller[_0xc8cd('0x13')]);module[_0xc8cd('0x14')]=router;