Built motion from commit 9d0783e6.|2.6.13
[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 _0xa7e7=['fs-extra','../../components/interaction/service','../../config/environment','./userProfileSection.controller','get','isAuthenticated','/describe','describe','/:id','show','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x27d6b8,_0x18dc1e){var _0x21fa59=function(_0x503f2f){while(--_0x503f2f){_0x27d6b8['push'](_0x27d6b8['shift']());}};_0x21fa59(++_0x18dc1e);}(_0xa7e7,0x19c));var _0x7a7e=function(_0x49e2b6,_0x4e6609){_0x49e2b6=_0x49e2b6-0x0;var _0x37cf09=_0xa7e7[_0x49e2b6];return _0x37cf09;};'use strict';var multer=require(_0x7a7e('0x0'));var util=require(_0x7a7e('0x1'));var path=require(_0x7a7e('0x2'));var timeout=require(_0x7a7e('0x3'));var express=require(_0x7a7e('0x4'));var router=express[_0x7a7e('0x5')]();var fs_extra=require(_0x7a7e('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x7a7e('0x7'));var config=require(_0x7a7e('0x8'));var controller=require(_0x7a7e('0x9'));router[_0x7a7e('0xa')]('/',auth[_0x7a7e('0xb')](),controller['index']);router[_0x7a7e('0xa')](_0x7a7e('0xc'),auth[_0x7a7e('0xb')](),controller[_0x7a7e('0xd')]);router['get'](_0x7a7e('0xe'),auth['isAuthenticated'](),controller[_0x7a7e('0xf')]);router['post']('/',auth[_0x7a7e('0xb')](),controller[_0x7a7e('0x10')]);router[_0x7a7e('0x11')](_0x7a7e('0xe'),auth[_0x7a7e('0xb')](),controller[_0x7a7e('0x12')]);router[_0x7a7e('0x13')]('/:id',auth[_0x7a7e('0xb')](),controller[_0x7a7e('0x14')]);module[_0x7a7e('0x15')]=router;