8a23e5c66496fb6700bb2c7746a0791d0d16d0ab
[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 _0xadb9=['describe','get','isAuthenticated','post','create','/:id','delete','destroy','exports','multer','connect-timeout','express','fs-extra','../../components/interaction/service','./userProfileSection.controller','index','/describe'];(function(_0x4191af,_0x5783da){var _0x27bebf=function(_0x355be7){while(--_0x355be7){_0x4191af['push'](_0x4191af['shift']());}};_0x27bebf(++_0x5783da);}(_0xadb9,0x80));var _0x9adb=function(_0x2648a6,_0x2ef9a8){_0x2648a6=_0x2648a6-0x0;var _0x477807=_0xadb9[_0x2648a6];return _0x477807;};'use strict';var multer=require(_0x9adb('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x9adb('0x1'));var express=require(_0x9adb('0x2'));var router=express['Router']();var fs_extra=require(_0x9adb('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x9adb('0x4'));var config=require('../../config/environment');var controller=require(_0x9adb('0x5'));router['get']('/',auth['isAuthenticated'](),controller[_0x9adb('0x6')]);router['get'](_0x9adb('0x7'),auth['isAuthenticated'](),controller[_0x9adb('0x8')]);router[_0x9adb('0x9')]('/:id',auth[_0x9adb('0xa')](),controller['show']);router[_0x9adb('0xb')]('/',auth[_0x9adb('0xa')](),controller[_0x9adb('0xc')]);router['put'](_0x9adb('0xd'),auth['isAuthenticated'](),controller['update']);router[_0x9adb('0xe')](_0x9adb('0xd'),auth[_0x9adb('0xa')](),controller[_0x9adb('0xf')]);module[_0x9adb('0x10')]=router;