18e629dfe5117cc66ee7c12a80a2acba8ceeb0d3
[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 _0x2466=['connect-timeout','express','Router','./userProfile.controller','isAuthenticated','index','get','/describe','show','/:id/sections','getSections','/:id/resources','getResources','post','create','/:id/clone','clone','addSections','addResources','put','/:id','update','delete','removeSections','removeResources','exports','multer','util','path'];(function(_0x6131cd,_0x4c26a1){var _0x47e916=function(_0x1f2bce){while(--_0x1f2bce){_0x6131cd['push'](_0x6131cd['shift']());}};_0x47e916(++_0x4c26a1);}(_0x2466,0x176));var _0x6246=function(_0x482106,_0x175ecb){_0x482106=_0x482106-0x0;var _0x3c51cb=_0x2466[_0x482106];return _0x3c51cb;};'use strict';var multer=require(_0x6246('0x0'));var util=require(_0x6246('0x1'));var path=require(_0x6246('0x2'));var timeout=require(_0x6246('0x3'));var express=require(_0x6246('0x4'));var router=express[_0x6246('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x6246('0x6'));router['get']('/',auth[_0x6246('0x7')](),controller[_0x6246('0x8')]);router[_0x6246('0x9')](_0x6246('0xa'),auth[_0x6246('0x7')](),controller['describe']);router[_0x6246('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x6246('0xb')]);router[_0x6246('0x9')](_0x6246('0xc'),auth['isAuthenticated'](),controller[_0x6246('0xd')]);router[_0x6246('0x9')](_0x6246('0xe'),auth[_0x6246('0x7')](),controller[_0x6246('0xf')]);router[_0x6246('0x10')]('/',auth[_0x6246('0x7')](),controller[_0x6246('0x11')]);router['post'](_0x6246('0x12'),auth['isAuthenticated'](),controller[_0x6246('0x13')]);router[_0x6246('0x10')](_0x6246('0xc'),auth[_0x6246('0x7')](),controller[_0x6246('0x14')]);router['post'](_0x6246('0xe'),auth['isAuthenticated'](),controller[_0x6246('0x15')]);router[_0x6246('0x16')](_0x6246('0x17'),auth[_0x6246('0x7')](),controller[_0x6246('0x18')]);router[_0x6246('0x19')](_0x6246('0x17'),auth[_0x6246('0x7')](),controller['destroy']);router[_0x6246('0x19')](_0x6246('0xc'),auth[_0x6246('0x7')](),controller[_0x6246('0x1a')]);router[_0x6246('0x19')](_0x6246('0xe'),auth['isAuthenticated'](),controller[_0x6246('0x1b')]);module[_0x6246('0x1c')]=router;