Built motion from commit 449495f6.|2.6.27
[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 _0xa0f3=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfile.controller','get','isAuthenticated','index','/describe','/:id','show','getSections','post','create','/:id/clone','/:id/sections','/:id/resources','addResources','put','update','delete','destroy','removeResources','exports','multer'];(function(_0x3438e5,_0x549b1f){var _0x224aea=function(_0x34bcfe){while(--_0x34bcfe){_0x3438e5['push'](_0x3438e5['shift']());}};_0x224aea(++_0x549b1f);}(_0xa0f3,0x13e));var _0x3a0f=function(_0x484e36,_0x4482d8){_0x484e36=_0x484e36-0x0;var _0xafc85d=_0xa0f3[_0x484e36];return _0xafc85d;};'use strict';var multer=require(_0x3a0f('0x0'));var util=require('util');var path=require(_0x3a0f('0x1'));var timeout=require(_0x3a0f('0x2'));var express=require(_0x3a0f('0x3'));var router=express[_0x3a0f('0x4')]();var fs_extra=require(_0x3a0f('0x5'));var auth=require(_0x3a0f('0x6'));var interaction=require(_0x3a0f('0x7'));var config=require(_0x3a0f('0x8'));var controller=require(_0x3a0f('0x9'));router[_0x3a0f('0xa')]('/',auth[_0x3a0f('0xb')](),controller[_0x3a0f('0xc')]);router[_0x3a0f('0xa')](_0x3a0f('0xd'),auth[_0x3a0f('0xb')](),controller['describe']);router[_0x3a0f('0xa')](_0x3a0f('0xe'),auth[_0x3a0f('0xb')](),controller[_0x3a0f('0xf')]);router[_0x3a0f('0xa')]('/:id/sections',auth[_0x3a0f('0xb')](),controller[_0x3a0f('0x10')]);router[_0x3a0f('0xa')]('/:id/resources',auth[_0x3a0f('0xb')](),controller['getResources']);router[_0x3a0f('0x11')]('/',auth[_0x3a0f('0xb')](),controller[_0x3a0f('0x12')]);router[_0x3a0f('0x11')](_0x3a0f('0x13'),auth[_0x3a0f('0xb')](),controller['clone']);router['post'](_0x3a0f('0x14'),auth[_0x3a0f('0xb')](),controller['addSections']);router[_0x3a0f('0x11')](_0x3a0f('0x15'),auth[_0x3a0f('0xb')](),controller[_0x3a0f('0x16')]);router[_0x3a0f('0x17')](_0x3a0f('0xe'),auth[_0x3a0f('0xb')](),controller[_0x3a0f('0x18')]);router[_0x3a0f('0x19')](_0x3a0f('0xe'),auth[_0x3a0f('0xb')](),controller[_0x3a0f('0x1a')]);router['delete'](_0x3a0f('0x14'),auth[_0x3a0f('0xb')](),controller['removeSections']);router[_0x3a0f('0x19')](_0x3a0f('0x15'),auth[_0x3a0f('0xb')](),controller[_0x3a0f('0x1b')]);module[_0x3a0f('0x1c')]=router;