4e586dd7249d1fb2156e6ef4e7496ab54dfae662
[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 _0xbe08=['./userProfileSection.controller','get','isAuthenticated','/describe','describe','/:id','post','create','update','destroy','exports','multer','util','path','express','Router','fs-extra','../../config/environment'];(function(_0x3c09db,_0xa238b7){var _0x1883e7=function(_0x3e1226){while(--_0x3e1226){_0x3c09db['push'](_0x3c09db['shift']());}};_0x1883e7(++_0xa238b7);}(_0xbe08,0x107));var _0x8be0=function(_0x2d33b6,_0x119bf2){_0x2d33b6=_0x2d33b6-0x0;var _0x5f379f=_0xbe08[_0x2d33b6];return _0x5f379f;};'use strict';var multer=require(_0x8be0('0x0'));var util=require(_0x8be0('0x1'));var path=require(_0x8be0('0x2'));var timeout=require('connect-timeout');var express=require(_0x8be0('0x3'));var router=express[_0x8be0('0x4')]();var fs_extra=require(_0x8be0('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x8be0('0x6'));var controller=require(_0x8be0('0x7'));router[_0x8be0('0x8')]('/',auth[_0x8be0('0x9')](),controller['index']);router[_0x8be0('0x8')](_0x8be0('0xa'),auth['isAuthenticated'](),controller[_0x8be0('0xb')]);router[_0x8be0('0x8')](_0x8be0('0xc'),auth[_0x8be0('0x9')](),controller['show']);router[_0x8be0('0xd')]('/',auth[_0x8be0('0x9')](),controller[_0x8be0('0xe')]);router['put'](_0x8be0('0xc'),auth[_0x8be0('0x9')](),controller[_0x8be0('0xf')]);router['delete']('/:id',auth[_0x8be0('0x9')](),controller[_0x8be0('0x10')]);module[_0x8be0('0x11')]=router;