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