Built motion from commit 9e1399f3.|2.5.37
[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 _0x39a0=['put','/:id','update','destroy','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','./userProfileResource.controller','get','index','/describe','describe','isAuthenticated','show','post','create'];(function(_0x2dab20,_0x52ed85){var _0x462b05=function(_0x36608a){while(--_0x36608a){_0x2dab20['push'](_0x2dab20['shift']());}};_0x462b05(++_0x52ed85);}(_0x39a0,0xd6));var _0x039a=function(_0x256b75,_0x261162){_0x256b75=_0x256b75-0x0;var _0x5be390=_0x39a0[_0x256b75];return _0x5be390;};'use strict';var multer=require(_0x039a('0x0'));var util=require(_0x039a('0x1'));var path=require(_0x039a('0x2'));var timeout=require('connect-timeout');var express=require(_0x039a('0x3'));var router=express[_0x039a('0x4')]();var fs_extra=require(_0x039a('0x5'));var auth=require(_0x039a('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x039a('0x7'));var controller=require(_0x039a('0x8'));router[_0x039a('0x9')]('/',auth['isAuthenticated'](),controller[_0x039a('0xa')]);router[_0x039a('0x9')](_0x039a('0xb'),auth['isAuthenticated'](),controller[_0x039a('0xc')]);router[_0x039a('0x9')]('/:id',auth[_0x039a('0xd')](),controller[_0x039a('0xe')]);router[_0x039a('0xf')]('/',auth[_0x039a('0xd')](),controller[_0x039a('0x10')]);router[_0x039a('0x11')](_0x039a('0x12'),auth['isAuthenticated'](),controller[_0x039a('0x13')]);router['delete'](_0x039a('0x12'),auth[_0x039a('0xd')](),controller[_0x039a('0x14')]);module['exports']=router;