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