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