4f53970e22067a1983c9f11eca294c88f4063a09
[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 _0xf781=['path','express','Router','../../components/auth/service','../../config/environment','./userProfileResource.controller','get','isAuthenticated','index','/describe','describe','post','put','delete','/:id','destroy','multer','util'];(function(_0x25122f,_0x43d7d){var _0xba3d5c=function(_0x127f01){while(--_0x127f01){_0x25122f['push'](_0x25122f['shift']());}};_0xba3d5c(++_0x43d7d);}(_0xf781,0xc4));var _0x1f78=function(_0x5bef1d,_0x523f1c){_0x5bef1d=_0x5bef1d-0x0;var _0x2a9d3f=_0xf781[_0x5bef1d];return _0x2a9d3f;};'use strict';var multer=require(_0x1f78('0x0'));var util=require(_0x1f78('0x1'));var path=require(_0x1f78('0x2'));var timeout=require('connect-timeout');var express=require(_0x1f78('0x3'));var router=express[_0x1f78('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x1f78('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x1f78('0x6'));var controller=require(_0x1f78('0x7'));router[_0x1f78('0x8')]('/',auth[_0x1f78('0x9')](),controller[_0x1f78('0xa')]);router['get'](_0x1f78('0xb'),auth['isAuthenticated'](),controller[_0x1f78('0xc')]);router[_0x1f78('0x8')]('/:id',auth[_0x1f78('0x9')](),controller['show']);router[_0x1f78('0xd')]('/',auth[_0x1f78('0x9')](),controller['create']);router[_0x1f78('0xe')]('/:id',auth[_0x1f78('0x9')](),controller['update']);router[_0x1f78('0xf')](_0x1f78('0x10'),auth[_0x1f78('0x9')](),controller[_0x1f78('0x11')]);module['exports']=router;