f9bb281e485011e34449ab9eca29ad8f0bec7347
[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 _0xc93d=['get','isAuthenticated','/describe','describe','create','put','update','delete','/:id','exports','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x39eaa0,_0x2cea62){var _0x2402c5=function(_0x3c308a){while(--_0x3c308a){_0x39eaa0['push'](_0x39eaa0['shift']());}};_0x2402c5(++_0x2cea62);}(_0xc93d,0x184));var _0xdc93=function(_0x1863be,_0x3fb18f){_0x1863be=_0x1863be-0x0;var _0x5835e1=_0xc93d[_0x1863be];return _0x5835e1;};'use strict';var multer=require('multer');var util=require(_0xdc93('0x0'));var path=require(_0xdc93('0x1'));var timeout=require(_0xdc93('0x2'));var express=require('express');var router=express[_0xdc93('0x3')]();var fs_extra=require(_0xdc93('0x4'));var auth=require(_0xdc93('0x5'));var interaction=require(_0xdc93('0x6'));var config=require(_0xdc93('0x7'));var controller=require('./userProfileResource.controller');router[_0xdc93('0x8')]('/',auth[_0xdc93('0x9')](),controller['index']);router[_0xdc93('0x8')](_0xdc93('0xa'),auth[_0xdc93('0x9')](),controller[_0xdc93('0xb')]);router['get']('/:id',auth[_0xdc93('0x9')](),controller['show']);router['post']('/',auth[_0xdc93('0x9')](),controller[_0xdc93('0xc')]);router[_0xdc93('0xd')]('/:id',auth[_0xdc93('0x9')](),controller[_0xdc93('0xe')]);router[_0xdc93('0xf')](_0xdc93('0x10'),auth[_0xdc93('0x9')](),controller['destroy']);module[_0xdc93('0x11')]=router;