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