Built motion from commit 9d0783e6.|2.6.13
[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 _0x730f=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','./userProfileResource.controller','get','isAuthenticated','index','/describe','/:id','show','create','put','update','exports','multer','util','path','express'];(function(_0x43aee5,_0x11268b){var _0x76d1d0=function(_0x3faee6){while(--_0x3faee6){_0x43aee5['push'](_0x43aee5['shift']());}};_0x76d1d0(++_0x11268b);}(_0x730f,0x19e));var _0xf730=function(_0x561ea6,_0xce7611){_0x561ea6=_0x561ea6-0x0;var _0x11080b=_0x730f[_0x561ea6];return _0x11080b;};'use strict';var multer=require(_0xf730('0x0'));var util=require(_0xf730('0x1'));var path=require(_0xf730('0x2'));var timeout=require('connect-timeout');var express=require(_0xf730('0x3'));var router=express[_0xf730('0x4')]();var fs_extra=require(_0xf730('0x5'));var auth=require(_0xf730('0x6'));var interaction=require(_0xf730('0x7'));var config=require('../../config/environment');var controller=require(_0xf730('0x8'));router[_0xf730('0x9')]('/',auth[_0xf730('0xa')](),controller[_0xf730('0xb')]);router['get'](_0xf730('0xc'),auth[_0xf730('0xa')](),controller['describe']);router[_0xf730('0x9')](_0xf730('0xd'),auth[_0xf730('0xa')](),controller[_0xf730('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0xf730('0xf')]);router[_0xf730('0x10')](_0xf730('0xd'),auth[_0xf730('0xa')](),controller[_0xf730('0x11')]);router['delete'](_0xf730('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0xf730('0x12')]=router;