575b7a466a6ca1854a917d8bd886e9bb664fd3a3
[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 _0x35a6=['express','Router','../../components/auth/service','../../components/interaction/service','./userProfileSection.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','create','put','delete','exports','multer','util','connect-timeout'];(function(_0x49a57c,_0x2eb02c){var _0x4e0316=function(_0x37e2e5){while(--_0x37e2e5){_0x49a57c['push'](_0x49a57c['shift']());}};_0x4e0316(++_0x2eb02c);}(_0x35a6,0x1dd));var _0x635a=function(_0x143a91,_0x235332){_0x143a91=_0x143a91-0x0;var _0x1906f5=_0x35a6[_0x143a91];return _0x1906f5;};'use strict';var multer=require(_0x635a('0x0'));var util=require(_0x635a('0x1'));var path=require('path');var timeout=require(_0x635a('0x2'));var express=require(_0x635a('0x3'));var router=express[_0x635a('0x4')]();var auth=require(_0x635a('0x5'));var interaction=require(_0x635a('0x6'));var config=require('../../config/environment');var controller=require(_0x635a('0x7'));router[_0x635a('0x8')]('/',auth[_0x635a('0x9')](),controller[_0x635a('0xa')]);router[_0x635a('0x8')](_0x635a('0xb'),auth['isAuthenticated'](),controller[_0x635a('0xc')]);router[_0x635a('0x8')](_0x635a('0xd'),auth['isAuthenticated'](),controller[_0x635a('0xe')]);router[_0x635a('0xf')]('/',auth[_0x635a('0x9')](),controller[_0x635a('0x10')]);router[_0x635a('0x11')](_0x635a('0xd'),auth[_0x635a('0x9')](),controller['update']);router[_0x635a('0x12')](_0x635a('0xd'),auth[_0x635a('0x9')](),controller['destroy']);module[_0x635a('0x13')]=router;