4259e1e15457025362c2bdf91b8699fac4306f36
[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 _0xebc8=['put','delete','destroy','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileSection.controller','isAuthenticated','index','get','/describe','describe','/:id','show','post'];(function(_0xf0a95c,_0x570e29){var _0x3720ff=function(_0x40c364){while(--_0x40c364){_0xf0a95c['push'](_0xf0a95c['shift']());}};_0x3720ff(++_0x570e29);}(_0xebc8,0x107));var _0x8ebc=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0xebc8[_0x2dafbe];return _0x58a45a;};'use strict';var multer=require(_0x8ebc('0x0'));var util=require('util');var path=require(_0x8ebc('0x1'));var timeout=require(_0x8ebc('0x2'));var express=require(_0x8ebc('0x3'));var router=express[_0x8ebc('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x8ebc('0x5'));var interaction=require(_0x8ebc('0x6'));var config=require(_0x8ebc('0x7'));var controller=require(_0x8ebc('0x8'));router['get']('/',auth[_0x8ebc('0x9')](),controller[_0x8ebc('0xa')]);router[_0x8ebc('0xb')](_0x8ebc('0xc'),auth[_0x8ebc('0x9')](),controller[_0x8ebc('0xd')]);router[_0x8ebc('0xb')](_0x8ebc('0xe'),auth[_0x8ebc('0x9')](),controller[_0x8ebc('0xf')]);router[_0x8ebc('0x10')]('/',auth['isAuthenticated'](),controller['create']);router[_0x8ebc('0x11')](_0x8ebc('0xe'),auth[_0x8ebc('0x9')](),controller['update']);router[_0x8ebc('0x12')](_0x8ebc('0xe'),auth['isAuthenticated'](),controller[_0x8ebc('0x13')]);module['exports']=router;