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