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