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