1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xb698=['path','connect-timeout','Router','fs-extra','../../components/auth/service','get','/describe','isAuthenticated','describe','/:id','show','create','put','update','exports','util'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xb698,0xaf));var _0x8b69=function(_0x4d7ed9,_0x236e7d){_0x4d7ed9=_0x4d7ed9-0x0;var _0x240e64=_0xb698[_0x4d7ed9];return _0x240e64;};'use strict';var multer=require('multer');var util=require(_0x8b69('0x0'));var path=require(_0x8b69('0x1'));var timeout=require(_0x8b69('0x2'));var express=require('express');var router=express[_0x8b69('0x3')]();var fs_extra=require(_0x8b69('0x4'));var auth=require(_0x8b69('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./userProfileResource.controller');router[_0x8b69('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0x8b69('0x6')](_0x8b69('0x7'),auth[_0x8b69('0x8')](),controller[_0x8b69('0x9')]);router['get'](_0x8b69('0xa'),auth['isAuthenticated'](),controller[_0x8b69('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x8b69('0xc')]);router[_0x8b69('0xd')](_0x8b69('0xa'),auth[_0x8b69('0x8')](),controller[_0x8b69('0xe')]);router['delete'](_0x8b69('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0x8b69('0xf')]=router;