c1b2746cb6be2cf42ebad96128e6e1fc90d4d33a
[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 _0xd758=['path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','describe','/:id','post','put','update','delete','destroy','multer','util'];(function(_0x2d2258,_0x2ce510){var _0x18e155=function(_0x11949e){while(--_0x11949e){_0x2d2258['push'](_0x2d2258['shift']());}};_0x18e155(++_0x2ce510);}(_0xd758,0x196));var _0x8d75=function(_0xf5b19f,_0x53fcf9){_0xf5b19f=_0xf5b19f-0x0;var _0x25eba4=_0xd758[_0xf5b19f];return _0x25eba4;};'use strict';var multer=require(_0x8d75('0x0'));var util=require(_0x8d75('0x1'));var path=require(_0x8d75('0x2'));var timeout=require('connect-timeout');var express=require(_0x8d75('0x3'));var router=express[_0x8d75('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x8d75('0x5'));var interaction=require(_0x8d75('0x6'));var config=require(_0x8d75('0x7'));var controller=require('./userProfileSection.controller');router['get']('/',auth[_0x8d75('0x8')](),controller['index']);router[_0x8d75('0x9')]('/describe',auth[_0x8d75('0x8')](),controller[_0x8d75('0xa')]);router[_0x8d75('0x9')](_0x8d75('0xb'),auth[_0x8d75('0x8')](),controller['show']);router[_0x8d75('0xc')]('/',auth[_0x8d75('0x8')](),controller['create']);router[_0x8d75('0xd')](_0x8d75('0xb'),auth['isAuthenticated'](),controller[_0x8d75('0xe')]);router[_0x8d75('0xf')]('/:id',auth[_0x8d75('0x8')](),controller[_0x8d75('0x10')]);module['exports']=router;