Built motion from commit 47436d59.|2.6.7
[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 _0xb1cf=['create','put','/:id','update','delete','destroy','multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./userProfileSection.controller','isAuthenticated','index','get','describe','post'];(function(_0x13d07a,_0x41efc3){var _0x5ee0ee=function(_0x4ca94a){while(--_0x4ca94a){_0x13d07a['push'](_0x13d07a['shift']());}};_0x5ee0ee(++_0x41efc3);}(_0xb1cf,0x7e));var _0xfb1c=function(_0x2f0f90,_0x411945){_0x2f0f90=_0x2f0f90-0x0;var _0x3da03a=_0xb1cf[_0x2f0f90];return _0x3da03a;};'use strict';var multer=require(_0xfb1c('0x0'));var util=require(_0xfb1c('0x1'));var path=require(_0xfb1c('0x2'));var timeout=require(_0xfb1c('0x3'));var express=require(_0xfb1c('0x4'));var router=express['Router']();var fs_extra=require(_0xfb1c('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xfb1c('0x6'));var config=require(_0xfb1c('0x7'));var controller=require(_0xfb1c('0x8'));router['get']('/',auth[_0xfb1c('0x9')](),controller[_0xfb1c('0xa')]);router[_0xfb1c('0xb')]('/describe',auth['isAuthenticated'](),controller[_0xfb1c('0xc')]);router['get']('/:id',auth[_0xfb1c('0x9')](),controller['show']);router[_0xfb1c('0xd')]('/',auth[_0xfb1c('0x9')](),controller[_0xfb1c('0xe')]);router[_0xfb1c('0xf')](_0xfb1c('0x10'),auth[_0xfb1c('0x9')](),controller[_0xfb1c('0x11')]);router[_0xfb1c('0x12')](_0xfb1c('0x10'),auth[_0xfb1c('0x9')](),controller[_0xfb1c('0x13')]);module['exports']=router;