Built motion from commit (unavailable).|2.5.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 _0x7895=['/:id/sections','getSections','/:id/resources','getResources','post','/:id/clone','clone','addResources','update','removeSections','delete','removeResources','exports','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show'];(function(_0x4921fd,_0x45b894){var _0x5812e5=function(_0x360c7d){while(--_0x360c7d){_0x4921fd['push'](_0x4921fd['shift']());}};_0x5812e5(++_0x45b894);}(_0x7895,0x1e1));var _0x5789=function(_0x154ee9,_0x27ce59){_0x154ee9=_0x154ee9-0x0;var _0x3d9be4=_0x7895[_0x154ee9];return _0x3d9be4;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5789('0x0'));var timeout=require(_0x5789('0x1'));var express=require(_0x5789('0x2'));var router=express[_0x5789('0x3')]();var auth=require(_0x5789('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x5789('0x5'));var controller=require('./userProfile.controller');router[_0x5789('0x6')]('/',auth[_0x5789('0x7')](),controller[_0x5789('0x8')]);router[_0x5789('0x6')](_0x5789('0x9'),auth['isAuthenticated'](),controller[_0x5789('0xa')]);router[_0x5789('0x6')](_0x5789('0xb'),auth[_0x5789('0x7')](),controller[_0x5789('0xc')]);router[_0x5789('0x6')](_0x5789('0xd'),auth[_0x5789('0x7')](),controller[_0x5789('0xe')]);router[_0x5789('0x6')](_0x5789('0xf'),auth[_0x5789('0x7')](),controller[_0x5789('0x10')]);router['post']('/',auth[_0x5789('0x7')](),controller['create']);router[_0x5789('0x11')](_0x5789('0x12'),auth[_0x5789('0x7')](),controller[_0x5789('0x13')]);router[_0x5789('0x11')](_0x5789('0xd'),auth[_0x5789('0x7')](),controller['addSections']);router['post'](_0x5789('0xf'),auth[_0x5789('0x7')](),controller[_0x5789('0x14')]);router['put'](_0x5789('0xb'),auth[_0x5789('0x7')](),controller[_0x5789('0x15')]);router['delete'](_0x5789('0xb'),auth[_0x5789('0x7')](),controller['destroy']);router['delete'](_0x5789('0xd'),auth['isAuthenticated'](),controller[_0x5789('0x16')]);router[_0x5789('0x17')]('/:id/resources',auth[_0x5789('0x7')](),controller[_0x5789('0x18')]);module[_0x5789('0x19')]=router;