Built motion from commit fa4c4286.|2.6.29
[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 _0x301e=['put','delete','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./userProfileSection.controller','get','isAuthenticated','index','describe','/:id','show','post'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0x301e,0x110));var _0xe301=function(_0x1b7226,_0x3c28ba){_0x1b7226=_0x1b7226-0x0;var _0x30b98f=_0x301e[_0x1b7226];return _0x30b98f;};'use strict';var multer=require(_0xe301('0x0'));var util=require(_0xe301('0x1'));var path=require('path');var timeout=require(_0xe301('0x2'));var express=require(_0xe301('0x3'));var router=express[_0xe301('0x4')]();var fs_extra=require(_0xe301('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xe301('0x6'));var config=require(_0xe301('0x7'));var controller=require(_0xe301('0x8'));router[_0xe301('0x9')]('/',auth[_0xe301('0xa')](),controller[_0xe301('0xb')]);router[_0xe301('0x9')]('/describe',auth[_0xe301('0xa')](),controller[_0xe301('0xc')]);router[_0xe301('0x9')](_0xe301('0xd'),auth[_0xe301('0xa')](),controller[_0xe301('0xe')]);router[_0xe301('0xf')]('/',auth[_0xe301('0xa')](),controller['create']);router[_0xe301('0x10')](_0xe301('0xd'),auth[_0xe301('0xa')](),controller['update']);router[_0xe301('0x11')](_0xe301('0xd'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;