b825a7e4d4653c65d3409752cab96ba57e582cfb
[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 _0x9af4=['delete','destroy','exports','multer','path','express','../../components/interaction/service','../../config/environment','./userProfileSection.controller','get','isAuthenticated','/describe','describe','/:id','show','create'];(function(_0x8d800f,_0x48425f){var _0x197bc8=function(_0x459a22){while(--_0x459a22){_0x8d800f['push'](_0x8d800f['shift']());}};_0x197bc8(++_0x48425f);}(_0x9af4,0x183));var _0x49af=function(_0x334841,_0x2bbc4c){_0x334841=_0x334841-0x0;var _0x5beb4b=_0x9af4[_0x334841];return _0x5beb4b;};'use strict';var multer=require(_0x49af('0x0'));var util=require('util');var path=require(_0x49af('0x1'));var timeout=require('connect-timeout');var express=require(_0x49af('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x49af('0x3'));var config=require(_0x49af('0x4'));var controller=require(_0x49af('0x5'));router[_0x49af('0x6')]('/',auth[_0x49af('0x7')](),controller['index']);router[_0x49af('0x6')](_0x49af('0x8'),auth[_0x49af('0x7')](),controller[_0x49af('0x9')]);router[_0x49af('0x6')](_0x49af('0xa'),auth[_0x49af('0x7')](),controller[_0x49af('0xb')]);router['post']('/',auth[_0x49af('0x7')](),controller[_0x49af('0xc')]);router['put'](_0x49af('0xa'),auth[_0x49af('0x7')](),controller['update']);router[_0x49af('0xd')]('/:id',auth[_0x49af('0x7')](),controller[_0x49af('0xe')]);module[_0x49af('0xf')]=router;