Built motion from commit 25580385.|2.6.2
[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 _0x7c85=['../../components/auth/service','../../components/interaction/service','./userProfileResource.controller','get','isAuthenticated','index','/describe','/:id','show','create','put','update','delete','multer','path','express','Router'];(function(_0x3f59b4,_0xb4eb45){var _0x20c6b7=function(_0x204774){while(--_0x204774){_0x3f59b4['push'](_0x3f59b4['shift']());}};_0x20c6b7(++_0xb4eb45);}(_0x7c85,0x1b6));var _0x57c8=function(_0x399d76,_0xdc4493){_0x399d76=_0x399d76-0x0;var _0x3b19a1=_0x7c85[_0x399d76];return _0x3b19a1;};'use strict';var multer=require(_0x57c8('0x0'));var util=require('util');var path=require(_0x57c8('0x1'));var timeout=require('connect-timeout');var express=require(_0x57c8('0x2'));var router=express[_0x57c8('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x57c8('0x4'));var interaction=require(_0x57c8('0x5'));var config=require('../../config/environment');var controller=require(_0x57c8('0x6'));router[_0x57c8('0x7')]('/',auth[_0x57c8('0x8')](),controller[_0x57c8('0x9')]);router['get'](_0x57c8('0xa'),auth[_0x57c8('0x8')](),controller['describe']);router['get'](_0x57c8('0xb'),auth[_0x57c8('0x8')](),controller[_0x57c8('0xc')]);router['post']('/',auth[_0x57c8('0x8')](),controller[_0x57c8('0xd')]);router[_0x57c8('0xe')]('/:id',auth[_0x57c8('0x8')](),controller[_0x57c8('0xf')]);router[_0x57c8('0x10')]('/:id',auth['isAuthenticated'](),controller['destroy']);module['exports']=router;