Built motion from commit da617fac.|2.6.6
[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 _0xdca3=['/describe','/:id','show','post','create','put','update','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index'];(function(_0x2abc3d,_0x48edca){var _0x252745=function(_0x32bb6f){while(--_0x32bb6f){_0x2abc3d['push'](_0x2abc3d['shift']());}};_0x252745(++_0x48edca);}(_0xdca3,0xec));var _0x3dca=function(_0x249c48,_0x47dad5){_0x249c48=_0x249c48-0x0;var _0x4f0212=_0xdca3[_0x249c48];return _0x4f0212;};'use strict';var multer=require(_0x3dca('0x0'));var util=require(_0x3dca('0x1'));var path=require('path');var timeout=require(_0x3dca('0x2'));var express=require(_0x3dca('0x3'));var router=express[_0x3dca('0x4')]();var fs_extra=require(_0x3dca('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x3dca('0x6'));var config=require(_0x3dca('0x7'));var controller=require('./userProfileResource.controller');router[_0x3dca('0x8')]('/',auth[_0x3dca('0x9')](),controller[_0x3dca('0xa')]);router[_0x3dca('0x8')](_0x3dca('0xb'),auth['isAuthenticated'](),controller['describe']);router[_0x3dca('0x8')](_0x3dca('0xc'),auth[_0x3dca('0x9')](),controller[_0x3dca('0xd')]);router[_0x3dca('0xe')]('/',auth[_0x3dca('0x9')](),controller[_0x3dca('0xf')]);router[_0x3dca('0x10')]('/:id',auth['isAuthenticated'](),controller[_0x3dca('0x11')]);router['delete'](_0x3dca('0xc'),auth[_0x3dca('0x9')](),controller['destroy']);module[_0x3dca('0x12')]=router;