190ab390d877569abbbe70afdd4c67b0a5142f3f
[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 _0xc15c=['express','../../components/auth/service','./userProfileResource.controller','index','get','describe','/:id','isAuthenticated','show','create','put','update','delete','exports','path','connect-timeout'];(function(_0x422ae7,_0x26f223){var _0x53f008=function(_0x1f76f6){while(--_0x1f76f6){_0x422ae7['push'](_0x422ae7['shift']());}};_0x53f008(++_0x26f223);}(_0xc15c,0xae));var _0xcc15=function(_0x3b3fb0,_0x1d428a){_0x3b3fb0=_0x3b3fb0-0x0;var _0x2c68c4=_0xc15c[_0x3b3fb0];return _0x2c68c4;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xcc15('0x0'));var timeout=require(_0xcc15('0x1'));var express=require(_0xcc15('0x2'));var router=express['Router']();var auth=require(_0xcc15('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xcc15('0x4'));router['get']('/',auth['isAuthenticated'](),controller[_0xcc15('0x5')]);router[_0xcc15('0x6')]('/describe',auth['isAuthenticated'](),controller[_0xcc15('0x7')]);router[_0xcc15('0x6')](_0xcc15('0x8'),auth[_0xcc15('0x9')](),controller[_0xcc15('0xa')]);router['post']('/',auth[_0xcc15('0x9')](),controller[_0xcc15('0xb')]);router[_0xcc15('0xc')](_0xcc15('0x8'),auth['isAuthenticated'](),controller[_0xcc15('0xd')]);router[_0xcc15('0xe')](_0xcc15('0x8'),auth['isAuthenticated'](),controller['destroy']);module[_0xcc15('0xf')]=router;