adb70cea3e78c317102db7d54b44f1672ce2dec2
[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 _0xf830=['connect-timeout','fs-extra','../../components/auth/service','../../config/environment','get','index','isAuthenticated','describe','create','put','/:id','update','delete','destroy','exports','multer','path'];(function(_0x2f9407,_0x5cb504){var _0x34f13c=function(_0x19d963){while(--_0x19d963){_0x2f9407['push'](_0x2f9407['shift']());}};_0x34f13c(++_0x5cb504);}(_0xf830,0xb9));var _0x0f83=function(_0x5a5c87,_0xa44d04){_0x5a5c87=_0x5a5c87-0x0;var _0xefab4c=_0xf830[_0x5a5c87];return _0xefab4c;};'use strict';var multer=require(_0x0f83('0x0'));var util=require('util');var path=require(_0x0f83('0x1'));var timeout=require(_0x0f83('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x0f83('0x3'));var auth=require(_0x0f83('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x0f83('0x5'));var controller=require('./userProfileSection.controller');router[_0x0f83('0x6')]('/',auth['isAuthenticated'](),controller[_0x0f83('0x7')]);router[_0x0f83('0x6')]('/describe',auth[_0x0f83('0x8')](),controller[_0x0f83('0x9')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x0f83('0x8')](),controller[_0x0f83('0xa')]);router[_0x0f83('0xb')](_0x0f83('0xc'),auth[_0x0f83('0x8')](),controller[_0x0f83('0xd')]);router[_0x0f83('0xe')](_0x0f83('0xc'),auth[_0x0f83('0x8')](),controller[_0x0f83('0xf')]);module[_0x0f83('0x10')]=router;