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