8102517eee155a7bf7faa18b5b6825222d51dab6
[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 _0x3013=['./userProfile.controller','get','isAuthenticated','index','/describe','describe','/:id','/:id/sections','getSections','/:id/resources','post','/:id/clone','clone','addSections','addResources','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment'];(function(_0x4b4b0e,_0x6c674){var _0x4c2d91=function(_0x4d440d){while(--_0x4d440d){_0x4b4b0e['push'](_0x4b4b0e['shift']());}};_0x4c2d91(++_0x6c674);}(_0x3013,0x116));var _0x3301=function(_0xc03d7d,_0x270c8b){_0xc03d7d=_0xc03d7d-0x0;var _0x12dfee=_0x3013[_0xc03d7d];return _0x12dfee;};'use strict';var multer=require('multer');var util=require(_0x3301('0x0'));var path=require(_0x3301('0x1'));var timeout=require(_0x3301('0x2'));var express=require(_0x3301('0x3'));var router=express[_0x3301('0x4')]();var fs_extra=require(_0x3301('0x5'));var auth=require(_0x3301('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x3301('0x7'));var controller=require(_0x3301('0x8'));router[_0x3301('0x9')]('/',auth[_0x3301('0xa')](),controller[_0x3301('0xb')]);router[_0x3301('0x9')](_0x3301('0xc'),auth[_0x3301('0xa')](),controller[_0x3301('0xd')]);router[_0x3301('0x9')](_0x3301('0xe'),auth[_0x3301('0xa')](),controller['show']);router[_0x3301('0x9')](_0x3301('0xf'),auth[_0x3301('0xa')](),controller[_0x3301('0x10')]);router[_0x3301('0x9')](_0x3301('0x11'),auth[_0x3301('0xa')](),controller['getResources']);router[_0x3301('0x12')]('/',auth['isAuthenticated'](),controller['create']);router[_0x3301('0x12')](_0x3301('0x13'),auth[_0x3301('0xa')](),controller[_0x3301('0x14')]);router[_0x3301('0x12')](_0x3301('0xf'),auth[_0x3301('0xa')](),controller[_0x3301('0x15')]);router['post'](_0x3301('0x11'),auth[_0x3301('0xa')](),controller[_0x3301('0x16')]);router['put'](_0x3301('0xe'),auth[_0x3301('0xa')](),controller['update']);router[_0x3301('0x17')](_0x3301('0xe'),auth[_0x3301('0xa')](),controller[_0x3301('0x18')]);router[_0x3301('0x17')](_0x3301('0xf'),auth[_0x3301('0xa')](),controller['removeSections']);router[_0x3301('0x17')](_0x3301('0x11'),auth[_0x3301('0xa')](),controller['removeResources']);module[_0x3301('0x19')]=router;