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