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 _0xdcdc=['show','post','create','delete','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','/:id'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xdcdc,0x1e1));var _0xcdcd=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0xdcdc[_0x19e35c];return _0x3e1fe8;};'use strict';var multer=require(_0xcdcd('0x0'));var util=require(_0xcdcd('0x1'));var path=require(_0xcdcd('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xcdcd('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xcdcd('0x4'));var interaction=require(_0xcdcd('0x5'));var config=require('../../config/environment');var controller=require('./userProfileResource.controller');router[_0xcdcd('0x6')]('/',auth[_0xcdcd('0x7')](),controller[_0xcdcd('0x8')]);router[_0xcdcd('0x6')](_0xcdcd('0x9'),auth[_0xcdcd('0x7')](),controller[_0xcdcd('0xa')]);router[_0xcdcd('0x6')](_0xcdcd('0xb'),auth[_0xcdcd('0x7')](),controller[_0xcdcd('0xc')]);router[_0xcdcd('0xd')]('/',auth['isAuthenticated'](),controller[_0xcdcd('0xe')]);router['put'](_0xcdcd('0xb'),auth[_0xcdcd('0x7')](),controller['update']);router[_0xcdcd('0xf')]('/:id',auth[_0xcdcd('0x7')](),controller['destroy']);module[_0xcdcd('0x10')]=router;