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