Built motion from commit 6a92c2cd.|2.6.29
[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 _0x5f6a=['get','isAuthenticated','/describe','/:id','show','post','create','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x504bec,_0xf62c08){var _0x3577ed=function(_0x1bd0ed){while(--_0x1bd0ed){_0x504bec['push'](_0x504bec['shift']());}};_0x3577ed(++_0xf62c08);}(_0x5f6a,0x10f));var _0xa5f6=function(_0x8bae67,_0x22c5b1){_0x8bae67=_0x8bae67-0x0;var _0x190d50=_0x5f6a[_0x8bae67];return _0x190d50;};'use strict';var multer=require(_0xa5f6('0x0'));var util=require('util');var path=require(_0xa5f6('0x1'));var timeout=require(_0xa5f6('0x2'));var express=require(_0xa5f6('0x3'));var router=express[_0xa5f6('0x4')]();var fs_extra=require(_0xa5f6('0x5'));var auth=require(_0xa5f6('0x6'));var interaction=require(_0xa5f6('0x7'));var config=require(_0xa5f6('0x8'));var controller=require('./userProfileResource.controller');router[_0xa5f6('0x9')]('/',auth[_0xa5f6('0xa')](),controller['index']);router[_0xa5f6('0x9')](_0xa5f6('0xb'),auth['isAuthenticated'](),controller['describe']);router['get'](_0xa5f6('0xc'),auth[_0xa5f6('0xa')](),controller[_0xa5f6('0xd')]);router[_0xa5f6('0xe')]('/',auth[_0xa5f6('0xa')](),controller[_0xa5f6('0xf')]);router['put'](_0xa5f6('0xc'),auth['isAuthenticated'](),controller[_0xa5f6('0x10')]);router[_0xa5f6('0x11')](_0xa5f6('0xc'),auth[_0xa5f6('0xa')](),controller[_0xa5f6('0x12')]);module[_0xa5f6('0x13')]=router;