Built motion from commit b5996064.|2.6.21
[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 _0x9cf8=['express','../../components/interaction/service','../../config/environment','./userProfileResource.controller','isAuthenticated','get','describe','/:id','show','post','put','update','exports','multer','util','path','connect-timeout'];(function(_0x3d22a5,_0x100ae0){var _0x4c0a0e=function(_0x25793b){while(--_0x25793b){_0x3d22a5['push'](_0x3d22a5['shift']());}};_0x4c0a0e(++_0x100ae0);}(_0x9cf8,0xd9));var _0x89cf=function(_0x1f391d,_0x57c2c0){_0x1f391d=_0x1f391d-0x0;var _0x5da9d2=_0x9cf8[_0x1f391d];return _0x5da9d2;};'use strict';var multer=require(_0x89cf('0x0'));var util=require(_0x89cf('0x1'));var path=require(_0x89cf('0x2'));var timeout=require(_0x89cf('0x3'));var express=require(_0x89cf('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x89cf('0x5'));var config=require(_0x89cf('0x6'));var controller=require(_0x89cf('0x7'));router['get']('/',auth[_0x89cf('0x8')](),controller['index']);router[_0x89cf('0x9')]('/describe',auth['isAuthenticated'](),controller[_0x89cf('0xa')]);router[_0x89cf('0x9')](_0x89cf('0xb'),auth[_0x89cf('0x8')](),controller[_0x89cf('0xc')]);router[_0x89cf('0xd')]('/',auth[_0x89cf('0x8')](),controller['create']);router[_0x89cf('0xe')]('/:id',auth[_0x89cf('0x8')](),controller[_0x89cf('0xf')]);router['delete'](_0x89cf('0xb'),auth[_0x89cf('0x8')](),controller['destroy']);module[_0x89cf('0x10')]=router;