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 _0x1233=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileSection.controller','get','isAuthenticated','index','/describe','describe','show','create','put','/:id','update','destroy','exports','util','path'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x1233,0x1ca));var _0x3123=function(_0x492221,_0x9e2521){_0x492221=_0x492221-0x0;var _0x398bf9=_0x1233[_0x492221];return _0x398bf9;};'use strict';var multer=require('multer');var util=require(_0x3123('0x0'));var path=require(_0x3123('0x1'));var timeout=require('connect-timeout');var express=require(_0x3123('0x2'));var router=express[_0x3123('0x3')]();var auth=require(_0x3123('0x4'));var interaction=require(_0x3123('0x5'));var config=require(_0x3123('0x6'));var controller=require(_0x3123('0x7'));router[_0x3123('0x8')]('/',auth[_0x3123('0x9')](),controller[_0x3123('0xa')]);router[_0x3123('0x8')](_0x3123('0xb'),auth['isAuthenticated'](),controller[_0x3123('0xc')]);router['get']('/:id',auth[_0x3123('0x9')](),controller[_0x3123('0xd')]);router['post']('/',auth[_0x3123('0x9')](),controller[_0x3123('0xe')]);router[_0x3123('0xf')](_0x3123('0x10'),auth[_0x3123('0x9')](),controller[_0x3123('0x11')]);router['delete']('/:id',auth[_0x3123('0x9')](),controller[_0x3123('0x12')]);module[_0x3123('0x13')]=router;