Built motion from commit (unavailable).|2.5.8
[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 _0x263f=['/:id','show','post','create','put','delete','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./userProfileResource.controller','isAuthenticated','index','describe','get'];(function(_0x1a051d,_0x3a017a){var _0x275ccb=function(_0x1290ba){while(--_0x1290ba){_0x1a051d['push'](_0x1a051d['shift']());}};_0x275ccb(++_0x3a017a);}(_0x263f,0x182));var _0xf263=function(_0x339613,_0x3dfb9c){_0x339613=_0x339613-0x0;var _0x18deba=_0x263f[_0x339613];return _0x18deba;};'use strict';var multer=require(_0xf263('0x0'));var util=require(_0xf263('0x1'));var path=require(_0xf263('0x2'));var timeout=require(_0xf263('0x3'));var express=require(_0xf263('0x4'));var router=express[_0xf263('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xf263('0x6'));var config=require(_0xf263('0x7'));var controller=require(_0xf263('0x8'));router['get']('/',auth[_0xf263('0x9')](),controller[_0xf263('0xa')]);router['get']('/describe',auth[_0xf263('0x9')](),controller[_0xf263('0xb')]);router[_0xf263('0xc')](_0xf263('0xd'),auth['isAuthenticated'](),controller[_0xf263('0xe')]);router[_0xf263('0xf')]('/',auth[_0xf263('0x9')](),controller[_0xf263('0x10')]);router[_0xf263('0x11')](_0xf263('0xd'),auth[_0xf263('0x9')](),controller['update']);router[_0xf263('0x12')]('/:id',auth[_0xf263('0x9')](),controller['destroy']);module['exports']=router;