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