1d8c0113d0642a4412de61591c3c8e872b03c953
[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 _0x4349=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileSection.controller','index','/describe','isAuthenticated','describe','get','/:id','show','update','delete','destroy','exports','util','connect-timeout'];(function(_0x3fb174,_0xcb266f){var _0x4ac336=function(_0x3a4d47){while(--_0x3a4d47){_0x3fb174['push'](_0x3fb174['shift']());}};_0x4ac336(++_0xcb266f);}(_0x4349,0x1c6));var _0x9434=function(_0x4e3244,_0x1ec0fb){_0x4e3244=_0x4e3244-0x0;var _0x2f94d1=_0x4349[_0x4e3244];return _0x2f94d1;};'use strict';var multer=require('multer');var util=require(_0x9434('0x0'));var path=require('path');var timeout=require(_0x9434('0x1'));var express=require(_0x9434('0x2'));var router=express[_0x9434('0x3')]();var auth=require(_0x9434('0x4'));var interaction=require(_0x9434('0x5'));var config=require(_0x9434('0x6'));var controller=require(_0x9434('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x9434('0x8')]);router['get'](_0x9434('0x9'),auth[_0x9434('0xa')](),controller[_0x9434('0xb')]);router[_0x9434('0xc')](_0x9434('0xd'),auth[_0x9434('0xa')](),controller[_0x9434('0xe')]);router['post']('/',auth[_0x9434('0xa')](),controller['create']);router['put'](_0x9434('0xd'),auth[_0x9434('0xa')](),controller[_0x9434('0xf')]);router[_0x9434('0x10')]('/:id',auth[_0x9434('0xa')](),controller[_0x9434('0x11')]);module[_0x9434('0x12')]=router;