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