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 _0x4e6c=['/:id/clone','addResources','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','get','isAuthenticated','index','describe','/:id','show','/:id/sections','getSections','/:id/resources','getResources','post','create'];(function(_0x279d37,_0x14de3f){var _0x530173=function(_0x37fc79){while(--_0x37fc79){_0x279d37['push'](_0x279d37['shift']());}};_0x530173(++_0x14de3f);}(_0x4e6c,0x8d));var _0xc4e6=function(_0x31ab03,_0x43c06b){_0x31ab03=_0x31ab03-0x0;var _0x59fc3d=_0x4e6c[_0x31ab03];return _0x59fc3d;};'use strict';var multer=require(_0xc4e6('0x0'));var util=require(_0xc4e6('0x1'));var path=require(_0xc4e6('0x2'));var timeout=require(_0xc4e6('0x3'));var express=require(_0xc4e6('0x4'));var router=express[_0xc4e6('0x5')]();var fs_extra=require(_0xc4e6('0x6'));var auth=require(_0xc4e6('0x7'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./userProfile.controller');router[_0xc4e6('0x8')]('/',auth[_0xc4e6('0x9')](),controller[_0xc4e6('0xa')]);router[_0xc4e6('0x8')]('/describe',auth[_0xc4e6('0x9')](),controller[_0xc4e6('0xb')]);router[_0xc4e6('0x8')](_0xc4e6('0xc'),auth[_0xc4e6('0x9')](),controller[_0xc4e6('0xd')]);router['get'](_0xc4e6('0xe'),auth[_0xc4e6('0x9')](),controller[_0xc4e6('0xf')]);router[_0xc4e6('0x8')](_0xc4e6('0x10'),auth[_0xc4e6('0x9')](),controller[_0xc4e6('0x11')]);router[_0xc4e6('0x12')]('/',auth[_0xc4e6('0x9')](),controller[_0xc4e6('0x13')]);router[_0xc4e6('0x12')](_0xc4e6('0x14'),auth['isAuthenticated'](),controller['clone']);router['post'](_0xc4e6('0xe'),auth['isAuthenticated'](),controller['addSections']);router['post'](_0xc4e6('0x10'),auth[_0xc4e6('0x9')](),controller[_0xc4e6('0x15')]);router['put'](_0xc4e6('0xc'),auth[_0xc4e6('0x9')](),controller['update']);router['delete'](_0xc4e6('0xc'),auth[_0xc4e6('0x9')](),controller['destroy']);router['delete']('/:id/sections',auth[_0xc4e6('0x9')](),controller['removeSections']);router['delete'](_0xc4e6('0x10'),auth['isAuthenticated'](),controller['removeResources']);module[_0xc4e6('0x16')]=router;