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