2e9ac599f0f17b49eed51db66e2cd4aa9e4dff0d
[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 _0xafb9=['../../config/environment','isAuthenticated','get','describe','/:id','show','/:id/sections','getSections','getResources','post','create','/:id/clone','clone','/:id/resources','addResources','put','update','destroy','delete','removeSections','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x2272c2,_0x354eb4){var _0x2910a3=function(_0x237a98){while(--_0x237a98){_0x2272c2['push'](_0x2272c2['shift']());}};_0x2910a3(++_0x354eb4);}(_0xafb9,0x68));var _0x9afb=function(_0x471c23,_0x52d914){_0x471c23=_0x471c23-0x0;var _0x39cd4e=_0xafb9[_0x471c23];return _0x39cd4e;};'use strict';var multer=require(_0x9afb('0x0'));var util=require(_0x9afb('0x1'));var path=require(_0x9afb('0x2'));var timeout=require(_0x9afb('0x3'));var express=require(_0x9afb('0x4'));var router=express[_0x9afb('0x5')]();var auth=require(_0x9afb('0x6'));var interaction=require(_0x9afb('0x7'));var config=require(_0x9afb('0x8'));var controller=require('./userProfile.controller');router['get']('/',auth[_0x9afb('0x9')](),controller['index']);router[_0x9afb('0xa')]('/describe',auth['isAuthenticated'](),controller[_0x9afb('0xb')]);router[_0x9afb('0xa')](_0x9afb('0xc'),auth['isAuthenticated'](),controller[_0x9afb('0xd')]);router[_0x9afb('0xa')](_0x9afb('0xe'),auth[_0x9afb('0x9')](),controller[_0x9afb('0xf')]);router['get']('/:id/resources',auth[_0x9afb('0x9')](),controller[_0x9afb('0x10')]);router[_0x9afb('0x11')]('/',auth[_0x9afb('0x9')](),controller[_0x9afb('0x12')]);router[_0x9afb('0x11')](_0x9afb('0x13'),auth[_0x9afb('0x9')](),controller[_0x9afb('0x14')]);router[_0x9afb('0x11')]('/:id/sections',auth[_0x9afb('0x9')](),controller['addSections']);router['post'](_0x9afb('0x15'),auth[_0x9afb('0x9')](),controller[_0x9afb('0x16')]);router[_0x9afb('0x17')](_0x9afb('0xc'),auth[_0x9afb('0x9')](),controller[_0x9afb('0x18')]);router['delete'](_0x9afb('0xc'),auth[_0x9afb('0x9')](),controller[_0x9afb('0x19')]);router[_0x9afb('0x1a')](_0x9afb('0xe'),auth['isAuthenticated'](),controller[_0x9afb('0x1b')]);router['delete'](_0x9afb('0x15'),auth[_0x9afb('0x9')](),controller['removeResources']);module['exports']=router;