Built motion from commit e6806ed6.|2.6.0
[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 _0x280f=['destroy','exports','multer','util','path','connect-timeout','Router','../../components/interaction/service','isAuthenticated','index','get','describe','/:id','show','put','delete'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x280f,0x102));var _0xf280=function(_0x1f7996,_0x299a14){_0x1f7996=_0x1f7996-0x0;var _0x584609=_0x280f[_0x1f7996];return _0x584609;};'use strict';var multer=require(_0xf280('0x0'));var util=require(_0xf280('0x1'));var path=require(_0xf280('0x2'));var timeout=require(_0xf280('0x3'));var express=require('express');var router=express[_0xf280('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xf280('0x5'));var config=require('../../config/environment');var controller=require('./userProfileResource.controller');router['get']('/',auth[_0xf280('0x6')](),controller[_0xf280('0x7')]);router[_0xf280('0x8')]('/describe',auth['isAuthenticated'](),controller[_0xf280('0x9')]);router[_0xf280('0x8')](_0xf280('0xa'),auth[_0xf280('0x6')](),controller[_0xf280('0xb')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xf280('0xc')](_0xf280('0xa'),auth[_0xf280('0x6')](),controller['update']);router[_0xf280('0xd')](_0xf280('0xa'),auth[_0xf280('0x6')](),controller[_0xf280('0xe')]);module[_0xf280('0xf')]=router;