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