89db843d1349b8269faac88389d07be3e7dabfed
[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 _0x2116=['express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','post','create','put','delete','destroy','exports','multer','connect-timeout'];(function(_0x298ed3,_0x4ab5e1){var _0x5aad28=function(_0x168687){while(--_0x168687){_0x298ed3['push'](_0x298ed3['shift']());}};_0x5aad28(++_0x4ab5e1);}(_0x2116,0x1f2));var _0x6211=function(_0x438a35,_0x973546){_0x438a35=_0x438a35-0x0;var _0x28ebd8=_0x2116[_0x438a35];return _0x28ebd8;};'use strict';var multer=require(_0x6211('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x6211('0x1'));var express=require(_0x6211('0x2'));var router=express[_0x6211('0x3')]();var fs_extra=require(_0x6211('0x4'));var auth=require(_0x6211('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x6211('0x6'));var controller=require('./userProfileResource.controller');router[_0x6211('0x7')]('/',auth[_0x6211('0x8')](),controller[_0x6211('0x9')]);router[_0x6211('0x7')](_0x6211('0xa'),auth[_0x6211('0x8')](),controller[_0x6211('0xb')]);router[_0x6211('0x7')](_0x6211('0xc'),auth[_0x6211('0x8')](),controller[_0x6211('0xd')]);router[_0x6211('0xe')]('/',auth[_0x6211('0x8')](),controller[_0x6211('0xf')]);router[_0x6211('0x10')](_0x6211('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x6211('0x11')](_0x6211('0xc'),auth[_0x6211('0x8')](),controller[_0x6211('0x12')]);module[_0x6211('0x13')]=router;