Built motion from commit 9c91e9f5.|2.6.29
[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 _0x2b43=['../../components/auth/service','../../config/environment','./userProfile.controller','get','isAuthenticated','index','describe','show','/:id/sections','getSections','getResources','post','/:id/clone','clone','addSections','/:id/resources','put','/:id','update','delete','destroy','removeResources','multer','util','path','Router','fs-extra'];(function(_0x58e70f,_0x5313c9){var _0x189a20=function(_0x4c3a40){while(--_0x4c3a40){_0x58e70f['push'](_0x58e70f['shift']());}};_0x189a20(++_0x5313c9);}(_0x2b43,0x1e1));var _0x32b4=function(_0x4c061c,_0x4054f8){_0x4c061c=_0x4c061c-0x0;var _0x3f9a13=_0x2b43[_0x4c061c];return _0x3f9a13;};'use strict';var multer=require(_0x32b4('0x0'));var util=require(_0x32b4('0x1'));var path=require(_0x32b4('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x32b4('0x3')]();var fs_extra=require(_0x32b4('0x4'));var auth=require(_0x32b4('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x32b4('0x6'));var controller=require(_0x32b4('0x7'));router[_0x32b4('0x8')]('/',auth[_0x32b4('0x9')](),controller[_0x32b4('0xa')]);router[_0x32b4('0x8')]('/describe',auth[_0x32b4('0x9')](),controller[_0x32b4('0xb')]);router[_0x32b4('0x8')]('/:id',auth[_0x32b4('0x9')](),controller[_0x32b4('0xc')]);router[_0x32b4('0x8')](_0x32b4('0xd'),auth[_0x32b4('0x9')](),controller[_0x32b4('0xe')]);router[_0x32b4('0x8')]('/:id/resources',auth[_0x32b4('0x9')](),controller[_0x32b4('0xf')]);router[_0x32b4('0x10')]('/',auth[_0x32b4('0x9')](),controller['create']);router[_0x32b4('0x10')](_0x32b4('0x11'),auth['isAuthenticated'](),controller[_0x32b4('0x12')]);router[_0x32b4('0x10')](_0x32b4('0xd'),auth[_0x32b4('0x9')](),controller[_0x32b4('0x13')]);router['post'](_0x32b4('0x14'),auth[_0x32b4('0x9')](),controller['addResources']);router[_0x32b4('0x15')](_0x32b4('0x16'),auth[_0x32b4('0x9')](),controller[_0x32b4('0x17')]);router[_0x32b4('0x18')](_0x32b4('0x16'),auth[_0x32b4('0x9')](),controller[_0x32b4('0x19')]);router[_0x32b4('0x18')](_0x32b4('0xd'),auth[_0x32b4('0x9')](),controller['removeSections']);router['delete']('/:id/resources',auth['isAuthenticated'](),controller[_0x32b4('0x1a')]);module['exports']=router;