Built motion from commit e0fa946e.|2.6.5
[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 _0x5b76=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','show','post','create','put','update','delete','/:id','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x3da659,_0xb85e8d){var _0x5335d5=function(_0x38a09e){while(--_0x38a09e){_0x3da659['push'](_0x3da659['shift']());}};_0x5335d5(++_0xb85e8d);}(_0x5b76,0x180));var _0x65b7=function(_0x5c58c5,_0x29356c){_0x5c58c5=_0x5c58c5-0x0;var _0x213ba0=_0x5b76[_0x5c58c5];return _0x213ba0;};'use strict';var multer=require(_0x65b7('0x0'));var util=require(_0x65b7('0x1'));var path=require(_0x65b7('0x2'));var timeout=require(_0x65b7('0x3'));var express=require(_0x65b7('0x4'));var router=express[_0x65b7('0x5')]();var fs_extra=require(_0x65b7('0x6'));var auth=require(_0x65b7('0x7'));var interaction=require(_0x65b7('0x8'));var config=require(_0x65b7('0x9'));var controller=require('./userProfileSection.controller');router[_0x65b7('0xa')]('/',auth[_0x65b7('0xb')](),controller[_0x65b7('0xc')]);router[_0x65b7('0xa')](_0x65b7('0xd'),auth[_0x65b7('0xb')](),controller['describe']);router['get']('/:id',auth[_0x65b7('0xb')](),controller[_0x65b7('0xe')]);router[_0x65b7('0xf')]('/',auth[_0x65b7('0xb')](),controller[_0x65b7('0x10')]);router[_0x65b7('0x11')]('/:id',auth[_0x65b7('0xb')](),controller[_0x65b7('0x12')]);router[_0x65b7('0x13')](_0x65b7('0x14'),auth['isAuthenticated'](),controller[_0x65b7('0x15')]);module[_0x65b7('0x16')]=router;