Built motion from commit 06a208af.|2.6.26
[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 _0x31c3=['express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfile.controller','get','isAuthenticated','/describe','describe','/:id/resources','getResources','create','post','clone','/:id/sections','addSections','addResources','update','delete','/:id','removeSections','removeResources','exports','util','path'];(function(_0x114a36,_0x234ca9){var _0x301a18=function(_0x59854a){while(--_0x59854a){_0x114a36['push'](_0x114a36['shift']());}};_0x301a18(++_0x234ca9);}(_0x31c3,0x1ec));var _0x331c=function(_0x4bff38,_0x3358e2){_0x4bff38=_0x4bff38-0x0;var _0x3630b3=_0x31c3[_0x4bff38];return _0x3630b3;};'use strict';var multer=require('multer');var util=require(_0x331c('0x0'));var path=require(_0x331c('0x1'));var timeout=require('connect-timeout');var express=require(_0x331c('0x2'));var router=express['Router']();var fs_extra=require(_0x331c('0x3'));var auth=require(_0x331c('0x4'));var interaction=require(_0x331c('0x5'));var config=require(_0x331c('0x6'));var controller=require(_0x331c('0x7'));router[_0x331c('0x8')]('/',auth[_0x331c('0x9')](),controller['index']);router[_0x331c('0x8')](_0x331c('0xa'),auth[_0x331c('0x9')](),controller[_0x331c('0xb')]);router[_0x331c('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x331c('0x8')]('/:id/sections',auth[_0x331c('0x9')](),controller['getSections']);router[_0x331c('0x8')](_0x331c('0xc'),auth[_0x331c('0x9')](),controller[_0x331c('0xd')]);router['post']('/',auth[_0x331c('0x9')](),controller[_0x331c('0xe')]);router[_0x331c('0xf')]('/:id/clone',auth[_0x331c('0x9')](),controller[_0x331c('0x10')]);router[_0x331c('0xf')](_0x331c('0x11'),auth[_0x331c('0x9')](),controller[_0x331c('0x12')]);router[_0x331c('0xf')]('/:id/resources',auth[_0x331c('0x9')](),controller[_0x331c('0x13')]);router['put']('/:id',auth[_0x331c('0x9')](),controller[_0x331c('0x14')]);router[_0x331c('0x15')](_0x331c('0x16'),auth[_0x331c('0x9')](),controller['destroy']);router[_0x331c('0x15')](_0x331c('0x11'),auth['isAuthenticated'](),controller[_0x331c('0x17')]);router[_0x331c('0x15')](_0x331c('0xc'),auth[_0x331c('0x9')](),controller[_0x331c('0x18')]);module[_0x331c('0x19')]=router;