fcd9af01e663133714e988fdfccee8882d66392a
[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 _0x9cbb=['Router','../../components/interaction/service','get','isAuthenticated','/:id','show','/:id/resources','post','create','clone','/:id/sections','put','update','delete','destroy','removeResources','exports','multer','util','path'];(function(_0x3d5351,_0x27bc80){var _0x1db4db=function(_0x3f572b){while(--_0x3f572b){_0x3d5351['push'](_0x3d5351['shift']());}};_0x1db4db(++_0x27bc80);}(_0x9cbb,0x165));var _0xb9cb=function(_0x5c25af,_0x2aca55){_0x5c25af=_0x5c25af-0x0;var _0x5cef10=_0x9cbb[_0x5c25af];return _0x5cef10;};'use strict';var multer=require(_0xb9cb('0x0'));var util=require(_0xb9cb('0x1'));var path=require(_0xb9cb('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xb9cb('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xb9cb('0x4'));var config=require('../../config/environment');var controller=require('./userProfile.controller');router[_0xb9cb('0x5')]('/',auth[_0xb9cb('0x6')](),controller['index']);router[_0xb9cb('0x5')]('/describe',auth['isAuthenticated'](),controller['describe']);router['get'](_0xb9cb('0x7'),auth[_0xb9cb('0x6')](),controller[_0xb9cb('0x8')]);router[_0xb9cb('0x5')]('/:id/sections',auth[_0xb9cb('0x6')](),controller['getSections']);router[_0xb9cb('0x5')](_0xb9cb('0x9'),auth[_0xb9cb('0x6')](),controller['getResources']);router[_0xb9cb('0xa')]('/',auth[_0xb9cb('0x6')](),controller[_0xb9cb('0xb')]);router['post']('/:id/clone',auth[_0xb9cb('0x6')](),controller[_0xb9cb('0xc')]);router['post'](_0xb9cb('0xd'),auth['isAuthenticated'](),controller['addSections']);router[_0xb9cb('0xa')]('/:id/resources',auth['isAuthenticated'](),controller['addResources']);router[_0xb9cb('0xe')]('/:id',auth[_0xb9cb('0x6')](),controller[_0xb9cb('0xf')]);router[_0xb9cb('0x10')](_0xb9cb('0x7'),auth[_0xb9cb('0x6')](),controller[_0xb9cb('0x11')]);router[_0xb9cb('0x10')](_0xb9cb('0xd'),auth['isAuthenticated'](),controller['removeSections']);router[_0xb9cb('0x10')](_0xb9cb('0x9'),auth[_0xb9cb('0x6')](),controller[_0xb9cb('0x12')]);module[_0xb9cb('0x13')]=router;