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 _0x15da=['exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','index','get','/describe','isAuthenticated','describe','/:id','show','/:id/sections','getSections','/:id/resources','getResources','post','create','/:id/clone','clone','addSections','addResources','put','update','delete','destroy','removeSections','removeResources'];(function(_0x30406f,_0x4c5805){var _0x4f7691=function(_0x1bcd20){while(--_0x1bcd20){_0x30406f['push'](_0x30406f['shift']());}};_0x4f7691(++_0x4c5805);}(_0x15da,0xf9));var _0xa15d=function(_0x396466,_0xe9857b){_0x396466=_0x396466-0x0;var _0x5e9ab4=_0x15da[_0x396466];return _0x5e9ab4;};'use strict';var multer=require('multer');var util=require(_0xa15d('0x0'));var path=require(_0xa15d('0x1'));var timeout=require(_0xa15d('0x2'));var express=require(_0xa15d('0x3'));var router=express[_0xa15d('0x4')]();var fs_extra=require(_0xa15d('0x5'));var auth=require(_0xa15d('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./userProfile.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xa15d('0x7')]);router[_0xa15d('0x8')](_0xa15d('0x9'),auth[_0xa15d('0xa')](),controller[_0xa15d('0xb')]);router[_0xa15d('0x8')](_0xa15d('0xc'),auth[_0xa15d('0xa')](),controller[_0xa15d('0xd')]);router[_0xa15d('0x8')](_0xa15d('0xe'),auth[_0xa15d('0xa')](),controller[_0xa15d('0xf')]);router[_0xa15d('0x8')](_0xa15d('0x10'),auth['isAuthenticated'](),controller[_0xa15d('0x11')]);router[_0xa15d('0x12')]('/',auth[_0xa15d('0xa')](),controller[_0xa15d('0x13')]);router[_0xa15d('0x12')](_0xa15d('0x14'),auth[_0xa15d('0xa')](),controller[_0xa15d('0x15')]);router[_0xa15d('0x12')](_0xa15d('0xe'),auth[_0xa15d('0xa')](),controller[_0xa15d('0x16')]);router[_0xa15d('0x12')](_0xa15d('0x10'),auth[_0xa15d('0xa')](),controller[_0xa15d('0x17')]);router[_0xa15d('0x18')](_0xa15d('0xc'),auth['isAuthenticated'](),controller[_0xa15d('0x19')]);router[_0xa15d('0x1a')](_0xa15d('0xc'),auth[_0xa15d('0xa')](),controller[_0xa15d('0x1b')]);router[_0xa15d('0x1a')](_0xa15d('0xe'),auth['isAuthenticated'](),controller[_0xa15d('0x1c')]);router['delete']('/:id/resources',auth[_0xa15d('0xa')](),controller[_0xa15d('0x1d')]);module[_0xa15d('0x1e')]=router;