7989cb4ada58486db4a6e18e5247e6b306c54c99
[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 _0xaca0=['delete','destroy','util','path','../../components/interaction/service','./userProfileResource.controller','get','isAuthenticated','index','describe','/:id','show','post','create','put','update'];(function(_0x3604fd,_0x3c6297){var _0x18c989=function(_0x465f63){while(--_0x465f63){_0x3604fd['push'](_0x3604fd['shift']());}};_0x18c989(++_0x3c6297);}(_0xaca0,0xd2));var _0x0aca=function(_0x33116f,_0xcc6aef){_0x33116f=_0x33116f-0x0;var _0x364b5c=_0xaca0[_0x33116f];return _0x364b5c;};'use strict';var multer=require('multer');var util=require(_0x0aca('0x0'));var path=require(_0x0aca('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x0aca('0x2'));var config=require('../../config/environment');var controller=require(_0x0aca('0x3'));router[_0x0aca('0x4')]('/',auth[_0x0aca('0x5')](),controller[_0x0aca('0x6')]);router[_0x0aca('0x4')]('/describe',auth[_0x0aca('0x5')](),controller[_0x0aca('0x7')]);router['get'](_0x0aca('0x8'),auth[_0x0aca('0x5')](),controller[_0x0aca('0x9')]);router[_0x0aca('0xa')]('/',auth[_0x0aca('0x5')](),controller[_0x0aca('0xb')]);router[_0x0aca('0xc')](_0x0aca('0x8'),auth['isAuthenticated'](),controller[_0x0aca('0xd')]);router[_0x0aca('0xe')](_0x0aca('0x8'),auth['isAuthenticated'](),controller[_0x0aca('0xf')]);module['exports']=router;