Built motion from commit f8768ebe.|2.6.15
[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 _0x3a91=['get','/describe','describe','/:id','show','create','put','update','destroy','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./userProfileSection.controller','isAuthenticated'];(function(_0x346795,_0x2e860e){var _0x2f10e3=function(_0xeda3a6){while(--_0xeda3a6){_0x346795['push'](_0x346795['shift']());}};_0x2f10e3(++_0x2e860e);}(_0x3a91,0x139));var _0x13a9=function(_0x35f5b5,_0x389e18){_0x35f5b5=_0x35f5b5-0x0;var _0x16c86b=_0x3a91[_0x35f5b5];return _0x16c86b;};'use strict';var multer=require('multer');var util=require(_0x13a9('0x0'));var path=require(_0x13a9('0x1'));var timeout=require(_0x13a9('0x2'));var express=require(_0x13a9('0x3'));var router=express[_0x13a9('0x4')]();var fs_extra=require(_0x13a9('0x5'));var auth=require(_0x13a9('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x13a9('0x7'));var controller=require(_0x13a9('0x8'));router['get']('/',auth[_0x13a9('0x9')](),controller['index']);router[_0x13a9('0xa')](_0x13a9('0xb'),auth[_0x13a9('0x9')](),controller[_0x13a9('0xc')]);router[_0x13a9('0xa')](_0x13a9('0xd'),auth[_0x13a9('0x9')](),controller[_0x13a9('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0x13a9('0xf')]);router[_0x13a9('0x10')]('/:id',auth[_0x13a9('0x9')](),controller[_0x13a9('0x11')]);router['delete'](_0x13a9('0xd'),auth[_0x13a9('0x9')](),controller[_0x13a9('0x12')]);module['exports']=router;