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 _0x0a62=['express','Router','../../components/auth/service','./userProfileSection.controller','get','index','/describe','isAuthenticated','describe','create','put','/:id','update','delete','destroy','multer','util','path','connect-timeout'];(function(_0x2def51,_0x4ce5c4){var _0x4e69d3=function(_0x1cdb9c){while(--_0x1cdb9c){_0x2def51['push'](_0x2def51['shift']());}};_0x4e69d3(++_0x4ce5c4);}(_0x0a62,0x119));var _0x20a6=function(_0x20dd9b,_0x3c0fb8){_0x20dd9b=_0x20dd9b-0x0;var _0x2de3b0=_0x0a62[_0x20dd9b];return _0x2de3b0;};'use strict';var multer=require(_0x20a6('0x0'));var util=require(_0x20a6('0x1'));var path=require(_0x20a6('0x2'));var timeout=require(_0x20a6('0x3'));var express=require(_0x20a6('0x4'));var router=express[_0x20a6('0x5')]();var auth=require(_0x20a6('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x20a6('0x7'));router[_0x20a6('0x8')]('/',auth['isAuthenticated'](),controller[_0x20a6('0x9')]);router[_0x20a6('0x8')](_0x20a6('0xa'),auth[_0x20a6('0xb')](),controller[_0x20a6('0xc')]);router[_0x20a6('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x20a6('0xb')](),controller[_0x20a6('0xd')]);router[_0x20a6('0xe')](_0x20a6('0xf'),auth['isAuthenticated'](),controller[_0x20a6('0x10')]);router[_0x20a6('0x11')](_0x20a6('0xf'),auth[_0x20a6('0xb')](),controller[_0x20a6('0x12')]);module['exports']=router;