Built motion from commit (unavailable).|2.5.23
[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 _0x1a80=['get','post','put','delete','/:id','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./userProfileResource.controller','isAuthenticated','index','/describe','describe'];(function(_0x3b0653,_0x2231b5){var _0x367c9e=function(_0x1d336b){while(--_0x1d336b){_0x3b0653['push'](_0x3b0653['shift']());}};_0x367c9e(++_0x2231b5);}(_0x1a80,0x111));var _0x01a8=function(_0x25a377,_0xb0eaae){_0x25a377=_0x25a377-0x0;var _0x170561=_0x1a80[_0x25a377];return _0x170561;};'use strict';var multer=require(_0x01a8('0x0'));var util=require(_0x01a8('0x1'));var path=require(_0x01a8('0x2'));var timeout=require(_0x01a8('0x3'));var express=require('express');var router=express[_0x01a8('0x4')]();var auth=require(_0x01a8('0x5'));var interaction=require(_0x01a8('0x6'));var config=require('../../config/environment');var controller=require(_0x01a8('0x7'));router['get']('/',auth[_0x01a8('0x8')](),controller[_0x01a8('0x9')]);router['get'](_0x01a8('0xa'),auth[_0x01a8('0x8')](),controller[_0x01a8('0xb')]);router[_0x01a8('0xc')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x01a8('0xd')]('/',auth[_0x01a8('0x8')](),controller['create']);router[_0x01a8('0xe')]('/:id',auth[_0x01a8('0x8')](),controller['update']);router[_0x01a8('0xf')](_0x01a8('0x10'),auth[_0x01a8('0x8')](),controller[_0x01a8('0x11')]);module[_0x01a8('0x12')]=router;