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