981a4fd7e752666d260f8016742c5ac749c3a3d5
[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 _0x5795=['./userProfileResource.controller','isAuthenticated','index','get','/describe','describe','/:id','create','put','update','destroy','multer','util','path','connect-timeout','express','Router','../../config/environment'];(function(_0x366c11,_0x4c8633){var _0x35acf5=function(_0x54ab19){while(--_0x54ab19){_0x366c11['push'](_0x366c11['shift']());}};_0x35acf5(++_0x4c8633);}(_0x5795,0xd1));var _0x5579=function(_0x5d2803,_0xf375bd){_0x5d2803=_0x5d2803-0x0;var _0xdcad2c=_0x5795[_0x5d2803];return _0xdcad2c;};'use strict';var multer=require(_0x5579('0x0'));var util=require(_0x5579('0x1'));var path=require(_0x5579('0x2'));var timeout=require(_0x5579('0x3'));var express=require(_0x5579('0x4'));var router=express[_0x5579('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x5579('0x6'));var controller=require(_0x5579('0x7'));router['get']('/',auth[_0x5579('0x8')](),controller[_0x5579('0x9')]);router[_0x5579('0xa')](_0x5579('0xb'),auth[_0x5579('0x8')](),controller[_0x5579('0xc')]);router['get'](_0x5579('0xd'),auth[_0x5579('0x8')](),controller['show']);router['post']('/',auth[_0x5579('0x8')](),controller[_0x5579('0xe')]);router[_0x5579('0xf')](_0x5579('0xd'),auth['isAuthenticated'](),controller[_0x5579('0x10')]);router['delete'](_0x5579('0xd'),auth[_0x5579('0x8')](),controller[_0x5579('0x11')]);module['exports']=router;