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 _0xb00a=['express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileResource.controller','get','isAuthenticated','/describe','/:id','show','create','update','delete','destroy','multer','util','connect-timeout'];(function(_0x10ffa0,_0x27431e){var _0x1f4f2e=function(_0x3cdced){while(--_0x3cdced){_0x10ffa0['push'](_0x10ffa0['shift']());}};_0x1f4f2e(++_0x27431e);}(_0xb00a,0x9f));var _0xab00=function(_0x352ae1,_0x51aa8c){_0x352ae1=_0x352ae1-0x0;var _0x81c340=_0xb00a[_0x352ae1];return _0x81c340;};'use strict';var multer=require(_0xab00('0x0'));var util=require(_0xab00('0x1'));var path=require('path');var timeout=require(_0xab00('0x2'));var express=require(_0xab00('0x3'));var router=express['Router']();var fs_extra=require(_0xab00('0x4'));var auth=require(_0xab00('0x5'));var interaction=require(_0xab00('0x6'));var config=require(_0xab00('0x7'));var controller=require(_0xab00('0x8'));router[_0xab00('0x9')]('/',auth[_0xab00('0xa')](),controller['index']);router[_0xab00('0x9')](_0xab00('0xb'),auth['isAuthenticated'](),controller['describe']);router[_0xab00('0x9')](_0xab00('0xc'),auth[_0xab00('0xa')](),controller[_0xab00('0xd')]);router['post']('/',auth[_0xab00('0xa')](),controller[_0xab00('0xe')]);router['put']('/:id',auth[_0xab00('0xa')](),controller[_0xab00('0xf')]);router[_0xab00('0x10')](_0xab00('0xc'),auth[_0xab00('0xa')](),controller[_0xab00('0x11')]);module['exports']=router;