77f323feedab9601a6522fe54866fc65c8c26f6d
[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 _0xdc52=['fs-extra','../../components/interaction/service','../../config/environment','./userProfileResource.controller','index','isAuthenticated','describe','get','/:id','show','post','create','put','update','delete','multer','util','connect-timeout','Router'];(function(_0x5499ce,_0x3908fe){var _0xb9a0c2=function(_0x261d0b){while(--_0x261d0b){_0x5499ce['push'](_0x5499ce['shift']());}};_0xb9a0c2(++_0x3908fe);}(_0xdc52,0x13f));var _0x2dc5=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xdc52[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x2dc5('0x0'));var util=require(_0x2dc5('0x1'));var path=require('path');var timeout=require(_0x2dc5('0x2'));var express=require('express');var router=express[_0x2dc5('0x3')]();var fs_extra=require(_0x2dc5('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x2dc5('0x5'));var config=require(_0x2dc5('0x6'));var controller=require(_0x2dc5('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x2dc5('0x8')]);router['get']('/describe',auth[_0x2dc5('0x9')](),controller[_0x2dc5('0xa')]);router[_0x2dc5('0xb')](_0x2dc5('0xc'),auth['isAuthenticated'](),controller[_0x2dc5('0xd')]);router[_0x2dc5('0xe')]('/',auth[_0x2dc5('0x9')](),controller[_0x2dc5('0xf')]);router[_0x2dc5('0x10')]('/:id',auth[_0x2dc5('0x9')](),controller[_0x2dc5('0x11')]);router[_0x2dc5('0x12')](_0x2dc5('0xc'),auth[_0x2dc5('0x9')](),controller['destroy']);module['exports']=router;