Built motion from commit 43538d75.|2.5.35
[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 _0xa63a=['isAuthenticated','get','/describe','describe','/:id','show','put','delete','destroy','exports','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileSection.controller'];(function(_0x9df060,_0x253d33){var _0x338dfe=function(_0x17d9a5){while(--_0x17d9a5){_0x9df060['push'](_0x9df060['shift']());}};_0x338dfe(++_0x253d33);}(_0xa63a,0x184));var _0xaa63=function(_0x5f2098,_0x47308b){_0x5f2098=_0x5f2098-0x0;var _0x18af32=_0xa63a[_0x5f2098];return _0x18af32;};'use strict';var multer=require('multer');var util=require(_0xaa63('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xaa63('0x1'));var router=express[_0xaa63('0x2')]();var fs_extra=require(_0xaa63('0x3'));var auth=require(_0xaa63('0x4'));var interaction=require(_0xaa63('0x5'));var config=require(_0xaa63('0x6'));var controller=require(_0xaa63('0x7'));router['get']('/',auth[_0xaa63('0x8')](),controller['index']);router[_0xaa63('0x9')](_0xaa63('0xa'),auth[_0xaa63('0x8')](),controller[_0xaa63('0xb')]);router['get'](_0xaa63('0xc'),auth['isAuthenticated'](),controller[_0xaa63('0xd')]);router['post']('/',auth[_0xaa63('0x8')](),controller['create']);router[_0xaa63('0xe')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xaa63('0xf')]('/:id',auth[_0xaa63('0x8')](),controller[_0xaa63('0x10')]);module[_0xaa63('0x11')]=router;