3444c18e89a30fe92badf1264e47a5acb4e014eb
[motion2.git] / server / api / userProfile / 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 _0x09f4=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfile.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/resources','getResources','create','post','/:id/clone','clone','/:id/sections','addSections','put','update','delete','removeSections','removeResources','exports','path','connect-timeout','express','Router'];(function(_0x5d3ad5,_0x297649){var _0x540ae2=function(_0x2635db){while(--_0x2635db){_0x5d3ad5['push'](_0x5d3ad5['shift']());}};_0x540ae2(++_0x297649);}(_0x09f4,0xe4));var _0x409f=function(_0x11c14d,_0x17b748){_0x11c14d=_0x11c14d-0x0;var _0x3c1b4b=_0x09f4[_0x11c14d];return _0x3c1b4b;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x409f('0x0'));var timeout=require(_0x409f('0x1'));var express=require(_0x409f('0x2'));var router=express[_0x409f('0x3')]();var fs_extra=require(_0x409f('0x4'));var auth=require(_0x409f('0x5'));var interaction=require(_0x409f('0x6'));var config=require(_0x409f('0x7'));var controller=require(_0x409f('0x8'));router[_0x409f('0x9')]('/',auth[_0x409f('0xa')](),controller['index']);router['get'](_0x409f('0xb'),auth[_0x409f('0xa')](),controller[_0x409f('0xc')]);router[_0x409f('0x9')](_0x409f('0xd'),auth[_0x409f('0xa')](),controller[_0x409f('0xe')]);router[_0x409f('0x9')]('/:id/sections',auth[_0x409f('0xa')](),controller['getSections']);router['get'](_0x409f('0xf'),auth[_0x409f('0xa')](),controller[_0x409f('0x10')]);router['post']('/',auth['isAuthenticated'](),controller[_0x409f('0x11')]);router[_0x409f('0x12')](_0x409f('0x13'),auth[_0x409f('0xa')](),controller[_0x409f('0x14')]);router[_0x409f('0x12')](_0x409f('0x15'),auth['isAuthenticated'](),controller[_0x409f('0x16')]);router['post'](_0x409f('0xf'),auth[_0x409f('0xa')](),controller['addResources']);router[_0x409f('0x17')](_0x409f('0xd'),auth[_0x409f('0xa')](),controller[_0x409f('0x18')]);router[_0x409f('0x19')]('/:id',auth['isAuthenticated'](),controller['destroy']);router['delete'](_0x409f('0x15'),auth[_0x409f('0xa')](),controller[_0x409f('0x1a')]);router['delete'](_0x409f('0xf'),auth['isAuthenticated'](),controller[_0x409f('0x1b')]);module[_0x409f('0x1c')]=router;