b485d27c67f6e71d57a88aa9481e1b8d4e780b76
[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 _0x8b3d=['express','Router','fs-extra','../../components/interaction/service','../../config/environment','./userProfile.controller','isAuthenticated','index','get','/describe','describe','show','/:id/sections','getResources','post','/:id/clone','clone','addSections','/:id/resources','addResources','put','/:id','update','delete','destroy','removeSections','removeResources','exports','multer','util','path'];(function(_0x4a8bad,_0x4bfb2f){var _0x30cf32=function(_0x557b3a){while(--_0x557b3a){_0x4a8bad['push'](_0x4a8bad['shift']());}};_0x30cf32(++_0x4bfb2f);}(_0x8b3d,0x1af));var _0xd8b3=function(_0x3b05db,_0x30ed14){_0x3b05db=_0x3b05db-0x0;var _0x5cf7c1=_0x8b3d[_0x3b05db];return _0x5cf7c1;};'use strict';var multer=require(_0xd8b3('0x0'));var util=require(_0xd8b3('0x1'));var path=require(_0xd8b3('0x2'));var timeout=require('connect-timeout');var express=require(_0xd8b3('0x3'));var router=express[_0xd8b3('0x4')]();var fs_extra=require(_0xd8b3('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xd8b3('0x6'));var config=require(_0xd8b3('0x7'));var controller=require(_0xd8b3('0x8'));router['get']('/',auth[_0xd8b3('0x9')](),controller[_0xd8b3('0xa')]);router[_0xd8b3('0xb')](_0xd8b3('0xc'),auth[_0xd8b3('0x9')](),controller[_0xd8b3('0xd')]);router['get']('/:id',auth[_0xd8b3('0x9')](),controller[_0xd8b3('0xe')]);router[_0xd8b3('0xb')](_0xd8b3('0xf'),auth[_0xd8b3('0x9')](),controller['getSections']);router[_0xd8b3('0xb')]('/:id/resources',auth['isAuthenticated'](),controller[_0xd8b3('0x10')]);router[_0xd8b3('0x11')]('/',auth[_0xd8b3('0x9')](),controller['create']);router[_0xd8b3('0x11')](_0xd8b3('0x12'),auth[_0xd8b3('0x9')](),controller[_0xd8b3('0x13')]);router['post'](_0xd8b3('0xf'),auth[_0xd8b3('0x9')](),controller[_0xd8b3('0x14')]);router[_0xd8b3('0x11')](_0xd8b3('0x15'),auth[_0xd8b3('0x9')](),controller[_0xd8b3('0x16')]);router[_0xd8b3('0x17')](_0xd8b3('0x18'),auth['isAuthenticated'](),controller[_0xd8b3('0x19')]);router[_0xd8b3('0x1a')](_0xd8b3('0x18'),auth[_0xd8b3('0x9')](),controller[_0xd8b3('0x1b')]);router['delete']('/:id/sections',auth[_0xd8b3('0x9')](),controller[_0xd8b3('0x1c')]);router[_0xd8b3('0x1a')](_0xd8b3('0x15'),auth['isAuthenticated'](),controller[_0xd8b3('0x1d')]);module[_0xd8b3('0x1e')]=router;