054892f73c16a8f6481c97123aad7bd7a94ddc68
[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 _0x82eb=['/:id/clone','addSections','addResources','put','update','delete','destroy','removeSections','removeResources','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfile.controller','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/sections','getSections','/:id/resources','post'];(function(_0x90009e,_0x3000d0){var _0x5d8db7=function(_0x34e83e){while(--_0x34e83e){_0x90009e['push'](_0x90009e['shift']());}};_0x5d8db7(++_0x3000d0);}(_0x82eb,0xaa));var _0xb82e=function(_0x14fd26,_0x1d3c76){_0x14fd26=_0x14fd26-0x0;var _0x27bdf6=_0x82eb[_0x14fd26];return _0x27bdf6;};'use strict';var multer=require(_0xb82e('0x0'));var util=require(_0xb82e('0x1'));var path=require(_0xb82e('0x2'));var timeout=require(_0xb82e('0x3'));var express=require(_0xb82e('0x4'));var router=express[_0xb82e('0x5')]();var fs_extra=require(_0xb82e('0x6'));var auth=require(_0xb82e('0x7'));var interaction=require(_0xb82e('0x8'));var config=require(_0xb82e('0x9'));var controller=require(_0xb82e('0xa'));router['get']('/',auth[_0xb82e('0xb')](),controller[_0xb82e('0xc')]);router[_0xb82e('0xd')](_0xb82e('0xe'),auth[_0xb82e('0xb')](),controller[_0xb82e('0xf')]);router[_0xb82e('0xd')](_0xb82e('0x10'),auth[_0xb82e('0xb')](),controller[_0xb82e('0x11')]);router[_0xb82e('0xd')](_0xb82e('0x12'),auth[_0xb82e('0xb')](),controller[_0xb82e('0x13')]);router[_0xb82e('0xd')](_0xb82e('0x14'),auth[_0xb82e('0xb')](),controller['getResources']);router[_0xb82e('0x15')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0xb82e('0x16'),auth['isAuthenticated'](),controller['clone']);router[_0xb82e('0x15')](_0xb82e('0x12'),auth[_0xb82e('0xb')](),controller[_0xb82e('0x17')]);router['post'](_0xb82e('0x14'),auth[_0xb82e('0xb')](),controller[_0xb82e('0x18')]);router[_0xb82e('0x19')](_0xb82e('0x10'),auth[_0xb82e('0xb')](),controller[_0xb82e('0x1a')]);router[_0xb82e('0x1b')](_0xb82e('0x10'),auth[_0xb82e('0xb')](),controller[_0xb82e('0x1c')]);router[_0xb82e('0x1b')](_0xb82e('0x12'),auth[_0xb82e('0xb')](),controller[_0xb82e('0x1d')]);router[_0xb82e('0x1b')]('/:id/resources',auth[_0xb82e('0xb')](),controller[_0xb82e('0x1e')]);module[_0xb82e('0x1f')]=router;