2919c16e8782f460a8878b77596c4d3e600ff104
[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 _0x1f4d=['clone','addSections','addResources','put','update','destroy','delete','removeSections','removeResources','exports','multer','path','express','Router','../../config/environment','./userProfile.controller','get','/describe','isAuthenticated','describe','/:id','show','/:id/sections','/:id/resources','post','/:id/clone'];(function(_0x4e9628,_0x250573){var _0x27bc8c=function(_0xb3b7ae){while(--_0xb3b7ae){_0x4e9628['push'](_0x4e9628['shift']());}};_0x27bc8c(++_0x250573);}(_0x1f4d,0x15c));var _0xd1f4=function(_0x38626c,_0x11e281){_0x38626c=_0x38626c-0x0;var _0x744a68=_0x1f4d[_0x38626c];return _0x744a68;};'use strict';var multer=require(_0xd1f4('0x0'));var util=require('util');var path=require(_0xd1f4('0x1'));var timeout=require('connect-timeout');var express=require(_0xd1f4('0x2'));var router=express[_0xd1f4('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xd1f4('0x4'));var controller=require(_0xd1f4('0x5'));router[_0xd1f4('0x6')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xd1f4('0x7'),auth[_0xd1f4('0x8')](),controller[_0xd1f4('0x9')]);router[_0xd1f4('0x6')](_0xd1f4('0xa'),auth['isAuthenticated'](),controller[_0xd1f4('0xb')]);router[_0xd1f4('0x6')](_0xd1f4('0xc'),auth[_0xd1f4('0x8')](),controller['getSections']);router[_0xd1f4('0x6')](_0xd1f4('0xd'),auth[_0xd1f4('0x8')](),controller['getResources']);router['post']('/',auth[_0xd1f4('0x8')](),controller['create']);router[_0xd1f4('0xe')](_0xd1f4('0xf'),auth[_0xd1f4('0x8')](),controller[_0xd1f4('0x10')]);router[_0xd1f4('0xe')](_0xd1f4('0xc'),auth[_0xd1f4('0x8')](),controller[_0xd1f4('0x11')]);router[_0xd1f4('0xe')](_0xd1f4('0xd'),auth[_0xd1f4('0x8')](),controller[_0xd1f4('0x12')]);router[_0xd1f4('0x13')](_0xd1f4('0xa'),auth[_0xd1f4('0x8')](),controller[_0xd1f4('0x14')]);router['delete'](_0xd1f4('0xa'),auth[_0xd1f4('0x8')](),controller[_0xd1f4('0x15')]);router[_0xd1f4('0x16')](_0xd1f4('0xc'),auth[_0xd1f4('0x8')](),controller[_0xd1f4('0x17')]);router[_0xd1f4('0x16')]('/:id/resources',auth[_0xd1f4('0x8')](),controller[_0xd1f4('0x18')]);module[_0xd1f4('0x19')]=router;