fd66059b68ea56c20b28eda6f6a39b2a3a42b15f
[motion2.git] / server / api / userProfile / 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 _0xd42f=['/:id/clone','clone','addSections','/:id/resources','put','/:id','delete','destroy','removeSections','removeResources','exports','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfile.controller','get','index','/describe','isAuthenticated','describe','show','/:id/sections','getSections','getResources','post','create'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xd42f,0x1eb));var _0xfd42=function(_0x2b7865,_0x3c99be){_0x2b7865=_0x2b7865-0x0;var _0xd2f3a4=_0xd42f[_0x2b7865];return _0xd2f3a4;};'use strict';var multer=require('multer');var util=require(_0xfd42('0x0'));var path=require(_0xfd42('0x1'));var timeout=require('connect-timeout');var express=require(_0xfd42('0x2'));var router=express['Router']();var fs_extra=require(_0xfd42('0x3'));var auth=require(_0xfd42('0x4'));var interaction=require(_0xfd42('0x5'));var config=require(_0xfd42('0x6'));var controller=require(_0xfd42('0x7'));router[_0xfd42('0x8')]('/',auth['isAuthenticated'](),controller[_0xfd42('0x9')]);router[_0xfd42('0x8')](_0xfd42('0xa'),auth[_0xfd42('0xb')](),controller[_0xfd42('0xc')]);router['get']('/:id',auth[_0xfd42('0xb')](),controller[_0xfd42('0xd')]);router[_0xfd42('0x8')](_0xfd42('0xe'),auth[_0xfd42('0xb')](),controller[_0xfd42('0xf')]);router[_0xfd42('0x8')]('/:id/resources',auth[_0xfd42('0xb')](),controller[_0xfd42('0x10')]);router[_0xfd42('0x11')]('/',auth['isAuthenticated'](),controller[_0xfd42('0x12')]);router[_0xfd42('0x11')](_0xfd42('0x13'),auth['isAuthenticated'](),controller[_0xfd42('0x14')]);router['post'](_0xfd42('0xe'),auth[_0xfd42('0xb')](),controller[_0xfd42('0x15')]);router[_0xfd42('0x11')](_0xfd42('0x16'),auth[_0xfd42('0xb')](),controller['addResources']);router[_0xfd42('0x17')](_0xfd42('0x18'),auth[_0xfd42('0xb')](),controller['update']);router[_0xfd42('0x19')]('/:id',auth['isAuthenticated'](),controller[_0xfd42('0x1a')]);router[_0xfd42('0x19')](_0xfd42('0xe'),auth[_0xfd42('0xb')](),controller[_0xfd42('0x1b')]);router['delete'](_0xfd42('0x16'),auth[_0xfd42('0xb')](),controller[_0xfd42('0x1c')]);module[_0xfd42('0x1d')]=router;