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