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