Built motion from commit 775e2a94.|2.6.3
[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 _0x4089=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfile.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/sections','getSections','/:id/resources','post','create','clone','addSections','addResources','update','delete','destroy','removeSections','removeResources','exports','multer','path','connect-timeout','express','Router'];(function(_0x46950a,_0x14a01f){var _0x2d3cc2=function(_0x454e36){while(--_0x454e36){_0x46950a['push'](_0x46950a['shift']());}};_0x2d3cc2(++_0x14a01f);}(_0x4089,0x91));var _0x9408=function(_0x8f6fa5,_0x320980){_0x8f6fa5=_0x8f6fa5-0x0;var _0x2e1201=_0x4089[_0x8f6fa5];return _0x2e1201;};'use strict';var multer=require(_0x9408('0x0'));var util=require('util');var path=require(_0x9408('0x1'));var timeout=require(_0x9408('0x2'));var express=require(_0x9408('0x3'));var router=express[_0x9408('0x4')]();var fs_extra=require(_0x9408('0x5'));var auth=require(_0x9408('0x6'));var interaction=require(_0x9408('0x7'));var config=require(_0x9408('0x8'));var controller=require(_0x9408('0x9'));router[_0x9408('0xa')]('/',auth[_0x9408('0xb')](),controller['index']);router[_0x9408('0xa')](_0x9408('0xc'),auth[_0x9408('0xb')](),controller[_0x9408('0xd')]);router['get'](_0x9408('0xe'),auth['isAuthenticated'](),controller[_0x9408('0xf')]);router[_0x9408('0xa')](_0x9408('0x10'),auth['isAuthenticated'](),controller[_0x9408('0x11')]);router[_0x9408('0xa')](_0x9408('0x12'),auth[_0x9408('0xb')](),controller['getResources']);router[_0x9408('0x13')]('/',auth[_0x9408('0xb')](),controller[_0x9408('0x14')]);router[_0x9408('0x13')]('/:id/clone',auth[_0x9408('0xb')](),controller[_0x9408('0x15')]);router[_0x9408('0x13')](_0x9408('0x10'),auth['isAuthenticated'](),controller[_0x9408('0x16')]);router[_0x9408('0x13')]('/:id/resources',auth[_0x9408('0xb')](),controller[_0x9408('0x17')]);router['put'](_0x9408('0xe'),auth[_0x9408('0xb')](),controller[_0x9408('0x18')]);router[_0x9408('0x19')](_0x9408('0xe'),auth['isAuthenticated'](),controller[_0x9408('0x1a')]);router[_0x9408('0x19')](_0x9408('0x10'),auth[_0x9408('0xb')](),controller[_0x9408('0x1b')]);router[_0x9408('0x19')](_0x9408('0x12'),auth[_0x9408('0xb')](),controller[_0x9408('0x1c')]);module[_0x9408('0x1d')]=router;