Built motion from commit e02f907f.|2.6.14
[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 _0x25fc=['../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileSection.controller','get','index','/describe','describe','/:id','isAuthenticated','show','post','put','update','multer','util','connect-timeout','Router','fs-extra'];(function(_0x11f37d,_0x2eae6a){var _0x1d18c0=function(_0x839fe1){while(--_0x839fe1){_0x11f37d['push'](_0x11f37d['shift']());}};_0x1d18c0(++_0x2eae6a);}(_0x25fc,0x105));var _0xc25f=function(_0x149e4b,_0xa7450f){_0x149e4b=_0x149e4b-0x0;var _0x38d26a=_0x25fc[_0x149e4b];return _0x38d26a;};'use strict';var multer=require(_0xc25f('0x0'));var util=require(_0xc25f('0x1'));var path=require('path');var timeout=require(_0xc25f('0x2'));var express=require('express');var router=express[_0xc25f('0x3')]();var fs_extra=require(_0xc25f('0x4'));var auth=require(_0xc25f('0x5'));var interaction=require(_0xc25f('0x6'));var config=require(_0xc25f('0x7'));var controller=require(_0xc25f('0x8'));router[_0xc25f('0x9')]('/',auth['isAuthenticated'](),controller[_0xc25f('0xa')]);router['get'](_0xc25f('0xb'),auth['isAuthenticated'](),controller[_0xc25f('0xc')]);router[_0xc25f('0x9')](_0xc25f('0xd'),auth[_0xc25f('0xe')](),controller[_0xc25f('0xf')]);router[_0xc25f('0x10')]('/',auth['isAuthenticated'](),controller['create']);router[_0xc25f('0x11')](_0xc25f('0xd'),auth[_0xc25f('0xe')](),controller[_0xc25f('0x12')]);router['delete'](_0xc25f('0xd'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;