Built motion from commit (unavailable).|2.4.18
[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 _0x0e28=['../../components/interaction/service','../../config/environment','./userProfileSection.controller','get','isAuthenticated','index','/describe','describe','create','/:id','update','destroy','exports','util','path','connect-timeout','Router','../../components/auth/service'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x0e28,0x12d));var _0x80e2=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0x0e28[_0x4565bf];return _0x5610ba;};'use strict';var multer=require('multer');var util=require(_0x80e2('0x0'));var path=require(_0x80e2('0x1'));var timeout=require(_0x80e2('0x2'));var express=require('express');var router=express[_0x80e2('0x3')]();var auth=require(_0x80e2('0x4'));var interaction=require(_0x80e2('0x5'));var config=require(_0x80e2('0x6'));var controller=require(_0x80e2('0x7'));router[_0x80e2('0x8')]('/',auth[_0x80e2('0x9')](),controller[_0x80e2('0xa')]);router[_0x80e2('0x8')](_0x80e2('0xb'),auth['isAuthenticated'](),controller[_0x80e2('0xc')]);router[_0x80e2('0x8')]('/:id',auth[_0x80e2('0x9')](),controller['show']);router['post']('/',auth[_0x80e2('0x9')](),controller[_0x80e2('0xd')]);router['put'](_0x80e2('0xe'),auth[_0x80e2('0x9')](),controller[_0x80e2('0xf')]);router['delete'](_0x80e2('0xe'),auth[_0x80e2('0x9')](),controller[_0x80e2('0x10')]);module[_0x80e2('0x11')]=router;