eb62e2160c9bbe82fbe7891da36d392d3347156e
[motion2.git] / server / api / userProfileSection / 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 _0xcb83=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileSection.controller','get','isAuthenticated','/describe','/:id','show','post','update','delete','destroy','exports','multer','path','connect-timeout'];(function(_0x11b55e,_0x47f1ff){var _0x268a13=function(_0x3dc694){while(--_0x3dc694){_0x11b55e['push'](_0x11b55e['shift']());}};_0x268a13(++_0x47f1ff);}(_0xcb83,0x1c5));var _0x3cb8=function(_0x42c581,_0x1c0689){_0x42c581=_0x42c581-0x0;var _0x1d09cd=_0xcb83[_0x42c581];return _0x1d09cd;};'use strict';var multer=require(_0x3cb8('0x0'));var util=require('util');var path=require(_0x3cb8('0x1'));var timeout=require(_0x3cb8('0x2'));var express=require(_0x3cb8('0x3'));var router=express[_0x3cb8('0x4')]();var auth=require(_0x3cb8('0x5'));var interaction=require(_0x3cb8('0x6'));var config=require(_0x3cb8('0x7'));var controller=require(_0x3cb8('0x8'));router[_0x3cb8('0x9')]('/',auth[_0x3cb8('0xa')](),controller['index']);router[_0x3cb8('0x9')](_0x3cb8('0xb'),auth[_0x3cb8('0xa')](),controller['describe']);router[_0x3cb8('0x9')](_0x3cb8('0xc'),auth[_0x3cb8('0xa')](),controller[_0x3cb8('0xd')]);router[_0x3cb8('0xe')]('/',auth[_0x3cb8('0xa')](),controller['create']);router['put'](_0x3cb8('0xc'),auth['isAuthenticated'](),controller[_0x3cb8('0xf')]);router[_0x3cb8('0x10')](_0x3cb8('0xc'),auth[_0x3cb8('0xa')](),controller[_0x3cb8('0x11')]);module[_0x3cb8('0x12')]=router;