ef0c6e51f61c214b48d684d9c6349ea9efbafec0
[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 _0x9652=['/:id/clone','addSections','addResources','put','delete','destroy','removeResources','exports','multer','path','express','Router','../../config/environment','./userProfile.controller','index','get','isAuthenticated','describe','/:id','/:id/sections','getSections','/:id/resources','getResources','post','create'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x9652,0x198));var _0x2965=function(_0x16d578,_0x3cbca3){_0x16d578=_0x16d578-0x0;var _0x3c0177=_0x9652[_0x16d578];return _0x3c0177;};'use strict';var multer=require(_0x2965('0x0'));var util=require('util');var path=require(_0x2965('0x1'));var timeout=require('connect-timeout');var express=require(_0x2965('0x2'));var router=express[_0x2965('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x2965('0x4'));var controller=require(_0x2965('0x5'));router['get']('/',auth['isAuthenticated'](),controller[_0x2965('0x6')]);router[_0x2965('0x7')]('/describe',auth[_0x2965('0x8')](),controller[_0x2965('0x9')]);router[_0x2965('0x7')](_0x2965('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x2965('0x7')](_0x2965('0xb'),auth[_0x2965('0x8')](),controller[_0x2965('0xc')]);router[_0x2965('0x7')](_0x2965('0xd'),auth[_0x2965('0x8')](),controller[_0x2965('0xe')]);router[_0x2965('0xf')]('/',auth[_0x2965('0x8')](),controller[_0x2965('0x10')]);router[_0x2965('0xf')](_0x2965('0x11'),auth[_0x2965('0x8')](),controller['clone']);router['post'](_0x2965('0xb'),auth[_0x2965('0x8')](),controller[_0x2965('0x12')]);router[_0x2965('0xf')](_0x2965('0xd'),auth[_0x2965('0x8')](),controller[_0x2965('0x13')]);router[_0x2965('0x14')]('/:id',auth[_0x2965('0x8')](),controller['update']);router[_0x2965('0x15')](_0x2965('0xa'),auth['isAuthenticated'](),controller[_0x2965('0x16')]);router['delete'](_0x2965('0xb'),auth[_0x2965('0x8')](),controller['removeSections']);router[_0x2965('0x15')]('/:id/resources',auth[_0x2965('0x8')](),controller[_0x2965('0x17')]);module[_0x2965('0x18')]=router;