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