4e7e86378330c136997d2c271fa998930305ae99
[motion2.git] / server / api / userProfileSection / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x2350=['../../components/interaction/service','../../config/environment','./userProfileSection.controller','isAuthenticated','get','/describe','/:id','show','post','create','put','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x1bbb02,_0x4e7c03){var _0x52d18c=function(_0x19b6a9){while(--_0x19b6a9){_0x1bbb02['push'](_0x1bbb02['shift']());}};_0x52d18c(++_0x4e7c03);}(_0x2350,0xae));var _0x0235=function(_0x53f402,_0x326920){_0x53f402=_0x53f402-0x0;var _0x45a76d=_0x2350[_0x53f402];return _0x45a76d;};'use strict';var multer=require('multer');var util=require(_0x0235('0x0'));var path=require(_0x0235('0x1'));var timeout=require(_0x0235('0x2'));var express=require(_0x0235('0x3'));var router=express[_0x0235('0x4')]();var fs_extra=require(_0x0235('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x0235('0x6'));var config=require(_0x0235('0x7'));var controller=require(_0x0235('0x8'));router['get']('/',auth[_0x0235('0x9')](),controller['index']);router[_0x0235('0xa')](_0x0235('0xb'),auth[_0x0235('0x9')](),controller['describe']);router[_0x0235('0xa')](_0x0235('0xc'),auth[_0x0235('0x9')](),controller[_0x0235('0xd')]);router[_0x0235('0xe')]('/',auth['isAuthenticated'](),controller[_0x0235('0xf')]);router[_0x0235('0x10')](_0x0235('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x0235('0x11')](_0x0235('0xc'),auth[_0x0235('0x9')](),controller[_0x0235('0x12')]);module[_0x0235('0x13')]=router;