Built motion from commit (unavailable).|2.5.18
[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 _0x1b02=['Router','../../components/auth/service','../../config/environment','index','get','/describe','isAuthenticated','describe','/:id','getSections','getResources','post','create','clone','/:id/sections','addSections','/:id/resources','addResources','put','update','delete','removeSections','removeResources','exports','multer','connect-timeout','express'];(function(_0x3070dc,_0x40cf11){var _0x431489=function(_0x49bc2a){while(--_0x49bc2a){_0x3070dc['push'](_0x3070dc['shift']());}};_0x431489(++_0x40cf11);}(_0x1b02,0x1c8));var _0x21b0=function(_0x2945bf,_0x4b9ab4){_0x2945bf=_0x2945bf-0x0;var _0x1c78bb=_0x1b02[_0x2945bf];return _0x1c78bb;};'use strict';var multer=require(_0x21b0('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x21b0('0x1'));var express=require(_0x21b0('0x2'));var router=express[_0x21b0('0x3')]();var auth=require(_0x21b0('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x21b0('0x5'));var controller=require('./userProfile.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x21b0('0x6')]);router[_0x21b0('0x7')](_0x21b0('0x8'),auth[_0x21b0('0x9')](),controller[_0x21b0('0xa')]);router[_0x21b0('0x7')](_0x21b0('0xb'),auth[_0x21b0('0x9')](),controller['show']);router[_0x21b0('0x7')]('/:id/sections',auth[_0x21b0('0x9')](),controller[_0x21b0('0xc')]);router[_0x21b0('0x7')]('/:id/resources',auth[_0x21b0('0x9')](),controller[_0x21b0('0xd')]);router[_0x21b0('0xe')]('/',auth[_0x21b0('0x9')](),controller[_0x21b0('0xf')]);router['post']('/:id/clone',auth[_0x21b0('0x9')](),controller[_0x21b0('0x10')]);router[_0x21b0('0xe')](_0x21b0('0x11'),auth[_0x21b0('0x9')](),controller[_0x21b0('0x12')]);router[_0x21b0('0xe')](_0x21b0('0x13'),auth['isAuthenticated'](),controller[_0x21b0('0x14')]);router[_0x21b0('0x15')](_0x21b0('0xb'),auth['isAuthenticated'](),controller[_0x21b0('0x16')]);router['delete'](_0x21b0('0xb'),auth['isAuthenticated'](),controller['destroy']);router[_0x21b0('0x17')](_0x21b0('0x11'),auth[_0x21b0('0x9')](),controller[_0x21b0('0x18')]);router['delete'](_0x21b0('0x13'),auth[_0x21b0('0x9')](),controller[_0x21b0('0x19')]);module[_0x21b0('0x1a')]=router;