Built motion from commit 511216ff.|2.6.34
[motion2.git] / server / api / userProfileSection / 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 _0xa186=['show','create','put','update','delete','destroy','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./userProfileSection.controller','isAuthenticated','index','get','/describe','/:id'];(function(_0x2e1be4,_0x8a5804){var _0x42a29d=function(_0x4f169f){while(--_0x4f169f){_0x2e1be4['push'](_0x2e1be4['shift']());}};_0x42a29d(++_0x8a5804);}(_0xa186,0x7e));var _0x6a18=function(_0x480a11,_0x2c6af2){_0x480a11=_0x480a11-0x0;var _0x438d83=_0xa186[_0x480a11];return _0x438d83;};'use strict';var multer=require(_0x6a18('0x0'));var util=require(_0x6a18('0x1'));var path=require(_0x6a18('0x2'));var timeout=require(_0x6a18('0x3'));var express=require(_0x6a18('0x4'));var router=express['Router']();var fs_extra=require(_0x6a18('0x5'));var auth=require(_0x6a18('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x6a18('0x7'));var controller=require(_0x6a18('0x8'));router['get']('/',auth[_0x6a18('0x9')](),controller[_0x6a18('0xa')]);router[_0x6a18('0xb')](_0x6a18('0xc'),auth[_0x6a18('0x9')](),controller['describe']);router['get'](_0x6a18('0xd'),auth['isAuthenticated'](),controller[_0x6a18('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0x6a18('0xf')]);router[_0x6a18('0x10')](_0x6a18('0xd'),auth[_0x6a18('0x9')](),controller[_0x6a18('0x11')]);router[_0x6a18('0x12')](_0x6a18('0xd'),auth['isAuthenticated'](),controller[_0x6a18('0x13')]);module['exports']=router;