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