bc8600d7292ebcd3ef1c549781f90de84af52dfd
[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 _0x7a04=['create','/:id/clone','addSections','put','delete','destroy','removeSections','removeResources','multer','util','path','express','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','getSections','/:id/resources','getResources','post'];(function(_0x4e3e0c,_0x325357){var _0x456035=function(_0x387c97){while(--_0x387c97){_0x4e3e0c['push'](_0x4e3e0c['shift']());}};_0x456035(++_0x325357);}(_0x7a04,0x18e));var _0x47a0=function(_0x3e0058,_0xcb5844){_0x3e0058=_0x3e0058-0x0;var _0x307c16=_0x7a04[_0x3e0058];return _0x307c16;};'use strict';var multer=require(_0x47a0('0x0'));var util=require(_0x47a0('0x1'));var path=require(_0x47a0('0x2'));var timeout=require('connect-timeout');var express=require(_0x47a0('0x3'));var router=express['Router']();var fs_extra=require(_0x47a0('0x4'));var auth=require(_0x47a0('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x47a0('0x6'));var controller=require('./userProfile.controller');router[_0x47a0('0x7')]('/',auth[_0x47a0('0x8')](),controller[_0x47a0('0x9')]);router['get'](_0x47a0('0xa'),auth['isAuthenticated'](),controller[_0x47a0('0xb')]);router[_0x47a0('0x7')](_0x47a0('0xc'),auth[_0x47a0('0x8')](),controller[_0x47a0('0xd')]);router[_0x47a0('0x7')]('/:id/sections',auth['isAuthenticated'](),controller[_0x47a0('0xe')]);router[_0x47a0('0x7')](_0x47a0('0xf'),auth[_0x47a0('0x8')](),controller[_0x47a0('0x10')]);router[_0x47a0('0x11')]('/',auth[_0x47a0('0x8')](),controller[_0x47a0('0x12')]);router[_0x47a0('0x11')](_0x47a0('0x13'),auth['isAuthenticated'](),controller['clone']);router[_0x47a0('0x11')]('/:id/sections',auth[_0x47a0('0x8')](),controller[_0x47a0('0x14')]);router['post'](_0x47a0('0xf'),auth[_0x47a0('0x8')](),controller['addResources']);router[_0x47a0('0x15')](_0x47a0('0xc'),auth[_0x47a0('0x8')](),controller['update']);router[_0x47a0('0x16')](_0x47a0('0xc'),auth[_0x47a0('0x8')](),controller[_0x47a0('0x17')]);router[_0x47a0('0x16')]('/:id/sections',auth[_0x47a0('0x8')](),controller[_0x47a0('0x18')]);router[_0x47a0('0x16')](_0x47a0('0xf'),auth[_0x47a0('0x8')](),controller[_0x47a0('0x19')]);module['exports']=router;