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