Built motion from commit 616d3211.|2.6.4
[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 _0xf384=['/:id/resources','put','update','delete','destroy','removeSections','exports','multer','util','path','../../components/auth/service','../../components/interaction/service','./userProfile.controller','get','isAuthenticated','index','/describe','describe','/:id','/:id/sections','getSections','getResources','post','create','/:id/clone','clone','addSections'];(function(_0x100e36,_0x4da225){var _0x1df0c9=function(_0xe4b84f){while(--_0xe4b84f){_0x100e36['push'](_0x100e36['shift']());}};_0x1df0c9(++_0x4da225);}(_0xf384,0x1ed));var _0x4f38=function(_0x42d1ec,_0x41386b){_0x42d1ec=_0x42d1ec-0x0;var _0x349c47=_0xf384[_0x42d1ec];return _0x349c47;};'use strict';var multer=require(_0x4f38('0x0'));var util=require(_0x4f38('0x1'));var path=require(_0x4f38('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x4f38('0x3'));var interaction=require(_0x4f38('0x4'));var config=require('../../config/environment');var controller=require(_0x4f38('0x5'));router[_0x4f38('0x6')]('/',auth[_0x4f38('0x7')](),controller[_0x4f38('0x8')]);router['get'](_0x4f38('0x9'),auth[_0x4f38('0x7')](),controller[_0x4f38('0xa')]);router[_0x4f38('0x6')](_0x4f38('0xb'),auth[_0x4f38('0x7')](),controller['show']);router[_0x4f38('0x6')](_0x4f38('0xc'),auth['isAuthenticated'](),controller[_0x4f38('0xd')]);router['get']('/:id/resources',auth[_0x4f38('0x7')](),controller[_0x4f38('0xe')]);router[_0x4f38('0xf')]('/',auth['isAuthenticated'](),controller[_0x4f38('0x10')]);router[_0x4f38('0xf')](_0x4f38('0x11'),auth[_0x4f38('0x7')](),controller[_0x4f38('0x12')]);router[_0x4f38('0xf')](_0x4f38('0xc'),auth[_0x4f38('0x7')](),controller[_0x4f38('0x13')]);router['post'](_0x4f38('0x14'),auth[_0x4f38('0x7')](),controller['addResources']);router[_0x4f38('0x15')](_0x4f38('0xb'),auth['isAuthenticated'](),controller[_0x4f38('0x16')]);router[_0x4f38('0x17')](_0x4f38('0xb'),auth[_0x4f38('0x7')](),controller[_0x4f38('0x18')]);router['delete'](_0x4f38('0xc'),auth[_0x4f38('0x7')](),controller[_0x4f38('0x19')]);router[_0x4f38('0x17')](_0x4f38('0x14'),auth['isAuthenticated'](),controller['removeResources']);module[_0x4f38('0x1a')]=router;