212c23f60372318a9d2f854c8c9d6af410745396
[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 _0xb2e6=['../../components/interaction/service','./userProfileSection.controller','get','isAuthenticated','index','/describe','/:id','show','post','create','put','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service'];(function(_0xa6cc5c,_0x239c99){var _0x44803d=function(_0x515b6e){while(--_0x515b6e){_0xa6cc5c['push'](_0xa6cc5c['shift']());}};_0x44803d(++_0x239c99);}(_0xb2e6,0x1c6));var _0x6b2e=function(_0x57e1e6,_0x38d403){_0x57e1e6=_0x57e1e6-0x0;var _0x416289=_0xb2e6[_0x57e1e6];return _0x416289;};'use strict';var multer=require(_0x6b2e('0x0'));var util=require(_0x6b2e('0x1'));var path=require(_0x6b2e('0x2'));var timeout=require(_0x6b2e('0x3'));var express=require('express');var router=express[_0x6b2e('0x4')]();var auth=require(_0x6b2e('0x5'));var interaction=require(_0x6b2e('0x6'));var config=require('../../config/environment');var controller=require(_0x6b2e('0x7'));router[_0x6b2e('0x8')]('/',auth[_0x6b2e('0x9')](),controller[_0x6b2e('0xa')]);router[_0x6b2e('0x8')](_0x6b2e('0xb'),auth[_0x6b2e('0x9')](),controller['describe']);router[_0x6b2e('0x8')](_0x6b2e('0xc'),auth[_0x6b2e('0x9')](),controller[_0x6b2e('0xd')]);router[_0x6b2e('0xe')]('/',auth[_0x6b2e('0x9')](),controller[_0x6b2e('0xf')]);router[_0x6b2e('0x10')](_0x6b2e('0xc'),auth[_0x6b2e('0x9')](),controller['update']);router[_0x6b2e('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x6b2e('0x12')]);module[_0x6b2e('0x13')]=router;