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