7092f3cb64443d5934144f1adc69bf04a7d210fd
[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 _0xe063=['fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','/:id','post','create','put','delete','destroy','exports','util','express'];(function(_0x103a67,_0xe0a0a9){var _0x52d8b0=function(_0x28a525){while(--_0x28a525){_0x103a67['push'](_0x103a67['shift']());}};_0x52d8b0(++_0xe0a0a9);}(_0xe063,0xdb));var _0x3e06=function(_0x6ad6dc,_0x265bd6){_0x6ad6dc=_0x6ad6dc-0x0;var _0x404f84=_0xe063[_0x6ad6dc];return _0x404f84;};'use strict';var multer=require('multer');var util=require(_0x3e06('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x3e06('0x1'));var router=express['Router']();var fs_extra=require(_0x3e06('0x2'));var auth=require(_0x3e06('0x3'));var interaction=require(_0x3e06('0x4'));var config=require('../../config/environment');var controller=require('./userProfileResource.controller');router[_0x3e06('0x5')]('/',auth[_0x3e06('0x6')](),controller[_0x3e06('0x7')]);router[_0x3e06('0x5')](_0x3e06('0x8'),auth['isAuthenticated'](),controller[_0x3e06('0x9')]);router[_0x3e06('0x5')](_0x3e06('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x3e06('0xb')]('/',auth[_0x3e06('0x6')](),controller[_0x3e06('0xc')]);router[_0x3e06('0xd')](_0x3e06('0xa'),auth[_0x3e06('0x6')](),controller['update']);router[_0x3e06('0xe')](_0x3e06('0xa'),auth[_0x3e06('0x6')](),controller[_0x3e06('0xf')]);module[_0x3e06('0x10')]=router;