7eb9588fb846a1adfe9317ee584b16b98ab4713e
[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 _0xed25=['delete','destroy','util','path','connect-timeout','express','fs-extra','../../components/auth/service','get','isAuthenticated','/:id','show','post','create','put'];(function(_0x16ea87,_0x378d8b){var _0x6e7b1c=function(_0x26306e){while(--_0x26306e){_0x16ea87['push'](_0x16ea87['shift']());}};_0x6e7b1c(++_0x378d8b);}(_0xed25,0x14c));var _0x5ed2=function(_0x3f32e4,_0x4681c7){_0x3f32e4=_0x3f32e4-0x0;var _0x18fbef=_0xed25[_0x3f32e4];return _0x18fbef;};'use strict';var multer=require('multer');var util=require(_0x5ed2('0x0'));var path=require(_0x5ed2('0x1'));var timeout=require(_0x5ed2('0x2'));var express=require(_0x5ed2('0x3'));var router=express['Router']();var fs_extra=require(_0x5ed2('0x4'));var auth=require(_0x5ed2('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./userProfileResource.controller');router[_0x5ed2('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0x5ed2('0x6')]('/describe',auth[_0x5ed2('0x7')](),controller['describe']);router['get'](_0x5ed2('0x8'),auth[_0x5ed2('0x7')](),controller[_0x5ed2('0x9')]);router[_0x5ed2('0xa')]('/',auth['isAuthenticated'](),controller[_0x5ed2('0xb')]);router[_0x5ed2('0xc')](_0x5ed2('0x8'),auth[_0x5ed2('0x7')](),controller['update']);router[_0x5ed2('0xd')]('/:id',auth[_0x5ed2('0x7')](),controller[_0x5ed2('0xe')]);module['exports']=router;