Built motion from commit (unavailable).|2.5.13
[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 _0x5fd1=['clone','addSections','put','destroy','delete','removeSections','removeResources','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./userProfile.controller','get','isAuthenticated','index','describe','/:id','show','/:id/sections','getSections','/:id/resources','post','create','/:id/clone'];(function(_0x55f3a0,_0x418bd1){var _0x49fe8e=function(_0x532a68){while(--_0x532a68){_0x55f3a0['push'](_0x55f3a0['shift']());}};_0x49fe8e(++_0x418bd1);}(_0x5fd1,0x19e));var _0x15fd=function(_0x29c3ae,_0x1f1183){_0x29c3ae=_0x29c3ae-0x0;var _0x4066ee=_0x5fd1[_0x29c3ae];return _0x4066ee;};'use strict';var multer=require(_0x15fd('0x0'));var util=require(_0x15fd('0x1'));var path=require(_0x15fd('0x2'));var timeout=require(_0x15fd('0x3'));var express=require(_0x15fd('0x4'));var router=express[_0x15fd('0x5')]();var auth=require(_0x15fd('0x6'));var interaction=require(_0x15fd('0x7'));var config=require('../../config/environment');var controller=require(_0x15fd('0x8'));router[_0x15fd('0x9')]('/',auth[_0x15fd('0xa')](),controller[_0x15fd('0xb')]);router['get']('/describe',auth['isAuthenticated'](),controller[_0x15fd('0xc')]);router[_0x15fd('0x9')](_0x15fd('0xd'),auth[_0x15fd('0xa')](),controller[_0x15fd('0xe')]);router['get'](_0x15fd('0xf'),auth['isAuthenticated'](),controller[_0x15fd('0x10')]);router['get'](_0x15fd('0x11'),auth[_0x15fd('0xa')](),controller['getResources']);router[_0x15fd('0x12')]('/',auth['isAuthenticated'](),controller[_0x15fd('0x13')]);router['post'](_0x15fd('0x14'),auth[_0x15fd('0xa')](),controller[_0x15fd('0x15')]);router[_0x15fd('0x12')]('/:id/sections',auth[_0x15fd('0xa')](),controller[_0x15fd('0x16')]);router[_0x15fd('0x12')](_0x15fd('0x11'),auth[_0x15fd('0xa')](),controller['addResources']);router[_0x15fd('0x17')](_0x15fd('0xd'),auth[_0x15fd('0xa')](),controller['update']);router['delete'](_0x15fd('0xd'),auth[_0x15fd('0xa')](),controller[_0x15fd('0x18')]);router[_0x15fd('0x19')](_0x15fd('0xf'),auth[_0x15fd('0xa')](),controller[_0x15fd('0x1a')]);router[_0x15fd('0x19')](_0x15fd('0x11'),auth['isAuthenticated'](),controller[_0x15fd('0x1b')]);module[_0x15fd('0x1c')]=router;