Built motion from commit e6806ed6.|2.6.0
[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 _0x549b=['delete','exports','util','path','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileSection.controller','get','isAuthenticated','/describe','describe','/:id','show','create','put','update'];(function(_0x44c008,_0x1654a9){var _0x5860ab=function(_0xb20216){while(--_0xb20216){_0x44c008['push'](_0x44c008['shift']());}};_0x5860ab(++_0x1654a9);}(_0x549b,0x101));var _0xb549=function(_0x4f9922,_0x5182d5){_0x4f9922=_0x4f9922-0x0;var _0x3d6a25=_0x549b[_0x4f9922];return _0x3d6a25;};'use strict';var multer=require('multer');var util=require(_0xb549('0x0'));var path=require(_0xb549('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xb549('0x2'));var interaction=require(_0xb549('0x3'));var config=require(_0xb549('0x4'));var controller=require(_0xb549('0x5'));router[_0xb549('0x6')]('/',auth[_0xb549('0x7')](),controller['index']);router[_0xb549('0x6')](_0xb549('0x8'),auth['isAuthenticated'](),controller[_0xb549('0x9')]);router[_0xb549('0x6')](_0xb549('0xa'),auth[_0xb549('0x7')](),controller[_0xb549('0xb')]);router['post']('/',auth[_0xb549('0x7')](),controller[_0xb549('0xc')]);router[_0xb549('0xd')](_0xb549('0xa'),auth[_0xb549('0x7')](),controller[_0xb549('0xe')]);router[_0xb549('0xf')](_0xb549('0xa'),auth[_0xb549('0x7')](),controller['destroy']);module[_0xb549('0x10')]=router;