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