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