Built motion from commit 43538d75.|2.5.35
[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 _0xa1c7=['post','create','update','delete','destroy','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileResource.controller','get','isAuthenticated','index','/describe','describe','/:id','show'];(function(_0xb86c14,_0x3b4dd4){var _0x2b6864=function(_0x22bc38){while(--_0x22bc38){_0xb86c14['push'](_0xb86c14['shift']());}};_0x2b6864(++_0x3b4dd4);}(_0xa1c7,0x1cd));var _0x7a1c=function(_0x4c9d7d,_0x2e7dfc){_0x4c9d7d=_0x4c9d7d-0x0;var _0x5282a5=_0xa1c7[_0x4c9d7d];return _0x5282a5;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x7a1c('0x0'));var express=require(_0x7a1c('0x1'));var router=express[_0x7a1c('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x7a1c('0x3'));var interaction=require(_0x7a1c('0x4'));var config=require(_0x7a1c('0x5'));var controller=require(_0x7a1c('0x6'));router[_0x7a1c('0x7')]('/',auth[_0x7a1c('0x8')](),controller[_0x7a1c('0x9')]);router['get'](_0x7a1c('0xa'),auth[_0x7a1c('0x8')](),controller[_0x7a1c('0xb')]);router[_0x7a1c('0x7')](_0x7a1c('0xc'),auth['isAuthenticated'](),controller[_0x7a1c('0xd')]);router[_0x7a1c('0xe')]('/',auth[_0x7a1c('0x8')](),controller[_0x7a1c('0xf')]);router['put'](_0x7a1c('0xc'),auth[_0x7a1c('0x8')](),controller[_0x7a1c('0x10')]);router[_0x7a1c('0x11')](_0x7a1c('0xc'),auth[_0x7a1c('0x8')](),controller[_0x7a1c('0x12')]);module['exports']=router;