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