Built motion from commit 497d3d92.|2.5.43
[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 _0xa862=['/describe','show','create','put','/:id','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','./userProfileResource.controller','get','isAuthenticated','index'];(function(_0x27af45,_0x1b57aa){var _0x18df21=function(_0x4b7679){while(--_0x4b7679){_0x27af45['push'](_0x27af45['shift']());}};_0x18df21(++_0x1b57aa);}(_0xa862,0x95));var _0x2a86=function(_0x3c5924,_0x4d295f){_0x3c5924=_0x3c5924-0x0;var _0x576958=_0xa862[_0x3c5924];return _0x576958;};'use strict';var multer=require(_0x2a86('0x0'));var util=require(_0x2a86('0x1'));var path=require('path');var timeout=require(_0x2a86('0x2'));var express=require(_0x2a86('0x3'));var router=express[_0x2a86('0x4')]();var fs_extra=require(_0x2a86('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x2a86('0x6'));var config=require('../../config/environment');var controller=require(_0x2a86('0x7'));router[_0x2a86('0x8')]('/',auth[_0x2a86('0x9')](),controller[_0x2a86('0xa')]);router[_0x2a86('0x8')](_0x2a86('0xb'),auth['isAuthenticated'](),controller['describe']);router[_0x2a86('0x8')]('/:id',auth[_0x2a86('0x9')](),controller[_0x2a86('0xc')]);router['post']('/',auth[_0x2a86('0x9')](),controller[_0x2a86('0xd')]);router[_0x2a86('0xe')](_0x2a86('0xf'),auth[_0x2a86('0x9')](),controller[_0x2a86('0x10')]);router[_0x2a86('0x11')](_0x2a86('0xf'),auth[_0x2a86('0x9')](),controller[_0x2a86('0x12')]);module[_0x2a86('0x13')]=router;