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