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 _0x5198=['clone','addSections','addResources','put','/:id','update','delete','destroy','/:id/sections','removeResources','multer','path','connect-timeout','express','../../components/auth/service','../../config/environment','get','isAuthenticated','/describe','describe','/:id/resources','getResources','post','/:id/clone'];(function(_0x441964,_0x3070ae){var _0x4211f0=function(_0x5065c9){while(--_0x5065c9){_0x441964['push'](_0x441964['shift']());}};_0x4211f0(++_0x3070ae);}(_0x5198,0x1ba));var _0x8519=function(_0x5db950,_0x5ca43e){_0x5db950=_0x5db950-0x0;var _0x480220=_0x5198[_0x5db950];return _0x480220;};'use strict';var multer=require(_0x8519('0x0'));var util=require('util');var path=require(_0x8519('0x1'));var timeout=require(_0x8519('0x2'));var express=require(_0x8519('0x3'));var router=express['Router']();var auth=require(_0x8519('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x8519('0x5'));var controller=require('./userProfile.controller');router[_0x8519('0x6')]('/',auth[_0x8519('0x7')](),controller['index']);router[_0x8519('0x6')](_0x8519('0x8'),auth[_0x8519('0x7')](),controller[_0x8519('0x9')]);router[_0x8519('0x6')]('/:id',auth[_0x8519('0x7')](),controller['show']);router[_0x8519('0x6')]('/:id/sections',auth['isAuthenticated'](),controller['getSections']);router['get'](_0x8519('0xa'),auth['isAuthenticated'](),controller[_0x8519('0xb')]);router[_0x8519('0xc')]('/',auth[_0x8519('0x7')](),controller['create']);router[_0x8519('0xc')](_0x8519('0xd'),auth[_0x8519('0x7')](),controller[_0x8519('0xe')]);router[_0x8519('0xc')]('/:id/sections',auth[_0x8519('0x7')](),controller[_0x8519('0xf')]);router['post'](_0x8519('0xa'),auth[_0x8519('0x7')](),controller[_0x8519('0x10')]);router[_0x8519('0x11')](_0x8519('0x12'),auth[_0x8519('0x7')](),controller[_0x8519('0x13')]);router[_0x8519('0x14')](_0x8519('0x12'),auth[_0x8519('0x7')](),controller[_0x8519('0x15')]);router[_0x8519('0x14')](_0x8519('0x16'),auth[_0x8519('0x7')](),controller['removeSections']);router[_0x8519('0x14')](_0x8519('0xa'),auth[_0x8519('0x7')](),controller[_0x8519('0x17')]);module['exports']=router;