Built motion from commit (unavailable).|2.5.30
[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 _0xf782=['/:id','delete','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileSection.controller','isAuthenticated','/describe','describe','get','show','create','put'];(function(_0xf26c2e,_0x56c3ea){var _0x46ecb4=function(_0x1be516){while(--_0x1be516){_0xf26c2e['push'](_0xf26c2e['shift']());}};_0x46ecb4(++_0x56c3ea);}(_0xf782,0x1e7));var _0x2f78=function(_0x2f5100,_0x565cbe){_0x2f5100=_0x2f5100-0x0;var _0x40c4bc=_0xf782[_0x2f5100];return _0x40c4bc;};'use strict';var multer=require(_0x2f78('0x0'));var util=require(_0x2f78('0x1'));var path=require(_0x2f78('0x2'));var timeout=require(_0x2f78('0x3'));var express=require('express');var router=express[_0x2f78('0x4')]();var fs_extra=require(_0x2f78('0x5'));var auth=require(_0x2f78('0x6'));var interaction=require(_0x2f78('0x7'));var config=require(_0x2f78('0x8'));var controller=require(_0x2f78('0x9'));router['get']('/',auth[_0x2f78('0xa')](),controller['index']);router['get'](_0x2f78('0xb'),auth[_0x2f78('0xa')](),controller[_0x2f78('0xc')]);router[_0x2f78('0xd')]('/:id',auth[_0x2f78('0xa')](),controller[_0x2f78('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0x2f78('0xf')]);router[_0x2f78('0x10')](_0x2f78('0x11'),auth[_0x2f78('0xa')](),controller['update']);router[_0x2f78('0x12')](_0x2f78('0x11'),auth['isAuthenticated'](),controller[_0x2f78('0x13')]);module[_0x2f78('0x14')]=router;