Built motion from commit (unavailable).|2.4.18
[motion2.git] / server / api / userProfileResource / 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 _0x2dca=['path','express','Router','../../components/auth/service','../../components/interaction/service','./userProfileResource.controller','get','isAuthenticated','/describe','describe','post','create','/:id','update','destroy','multer','util'];(function(_0x457d69,_0x2bfa35){var _0x489d9f=function(_0x2570b6){while(--_0x2570b6){_0x457d69['push'](_0x457d69['shift']());}};_0x489d9f(++_0x2bfa35);}(_0x2dca,0xdb));var _0xa2dc=function(_0x2df724,_0x411382){_0x2df724=_0x2df724-0x0;var _0x1b2504=_0x2dca[_0x2df724];return _0x1b2504;};'use strict';var multer=require(_0xa2dc('0x0'));var util=require(_0xa2dc('0x1'));var path=require(_0xa2dc('0x2'));var timeout=require('connect-timeout');var express=require(_0xa2dc('0x3'));var router=express[_0xa2dc('0x4')]();var auth=require(_0xa2dc('0x5'));var interaction=require(_0xa2dc('0x6'));var config=require('../../config/environment');var controller=require(_0xa2dc('0x7'));router[_0xa2dc('0x8')]('/',auth[_0xa2dc('0x9')](),controller['index']);router[_0xa2dc('0x8')](_0xa2dc('0xa'),auth[_0xa2dc('0x9')](),controller[_0xa2dc('0xb')]);router[_0xa2dc('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xa2dc('0xc')]('/',auth[_0xa2dc('0x9')](),controller[_0xa2dc('0xd')]);router['put'](_0xa2dc('0xe'),auth[_0xa2dc('0x9')](),controller[_0xa2dc('0xf')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xa2dc('0x10')]);module['exports']=router;