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 _0xf3b1=['connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','create','put','delete','destroy','multer','util'];(function(_0x236263,_0xc103fb){var _0x4aa300=function(_0x5df840){while(--_0x5df840){_0x236263['push'](_0x236263['shift']());}};_0x4aa300(++_0xc103fb);}(_0xf3b1,0x1b1));var _0x1f3b=function(_0x5b0047,_0x4c0f20){_0x5b0047=_0x5b0047-0x0;var _0x66101c=_0xf3b1[_0x5b0047];return _0x66101c;};'use strict';var multer=require(_0x1f3b('0x0'));var util=require(_0x1f3b('0x1'));var path=require('path');var timeout=require(_0x1f3b('0x2'));var express=require(_0x1f3b('0x3'));var router=express['Router']();var auth=require(_0x1f3b('0x4'));var interaction=require(_0x1f3b('0x5'));var config=require(_0x1f3b('0x6'));var controller=require('./userProfileResource.controller');router[_0x1f3b('0x7')]('/',auth[_0x1f3b('0x8')](),controller['index']);router[_0x1f3b('0x7')]('/describe',auth[_0x1f3b('0x8')](),controller['describe']);router[_0x1f3b('0x7')](_0x1f3b('0x9'),auth['isAuthenticated'](),controller[_0x1f3b('0xa')]);router['post']('/',auth[_0x1f3b('0x8')](),controller[_0x1f3b('0xb')]);router[_0x1f3b('0xc')](_0x1f3b('0x9'),auth[_0x1f3b('0x8')](),controller['update']);router[_0x1f3b('0xd')]('/:id',auth[_0x1f3b('0x8')](),controller[_0x1f3b('0xe')]);module['exports']=router;