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