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