Built motion from commit 19a84241.|2.5.34
[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 _0x039c=['fs-extra','../../components/interaction/service','../../config/environment','./userProfileResource.controller','isAuthenticated','index','get','/describe','describe','show','post','create','put','update','delete','/:id','destroy','exports','path','connect-timeout','express'];(function(_0x425f4b,_0x5c8016){var _0x47ab72=function(_0x21c9e4){while(--_0x21c9e4){_0x425f4b['push'](_0x425f4b['shift']());}};_0x47ab72(++_0x5c8016);}(_0x039c,0x1b6));var _0xc039=function(_0xd7bb05,_0x127327){_0xd7bb05=_0xd7bb05-0x0;var _0x1a4c95=_0x039c[_0xd7bb05];return _0x1a4c95;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xc039('0x0'));var timeout=require(_0xc039('0x1'));var express=require(_0xc039('0x2'));var router=express['Router']();var fs_extra=require(_0xc039('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xc039('0x4'));var config=require(_0xc039('0x5'));var controller=require(_0xc039('0x6'));router['get']('/',auth[_0xc039('0x7')](),controller[_0xc039('0x8')]);router[_0xc039('0x9')](_0xc039('0xa'),auth['isAuthenticated'](),controller[_0xc039('0xb')]);router[_0xc039('0x9')]('/:id',auth[_0xc039('0x7')](),controller[_0xc039('0xc')]);router[_0xc039('0xd')]('/',auth['isAuthenticated'](),controller[_0xc039('0xe')]);router[_0xc039('0xf')]('/:id',auth[_0xc039('0x7')](),controller[_0xc039('0x10')]);router[_0xc039('0x11')](_0xc039('0x12'),auth[_0xc039('0x7')](),controller[_0xc039('0x13')]);module[_0xc039('0x14')]=router;