ae36a317a4233c02faabacdfbbbee5ab1b7643a0
[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 _0x2dc3=['/describe','describe','show','post','create','put','delete','/:id','destroy','multer','util','path','connect-timeout','../../components/interaction/service','../../config/environment','./userProfileSection.controller','get','isAuthenticated'];(function(_0x1f1b58,_0x5a5daf){var _0x96cade=function(_0x5da739){while(--_0x5da739){_0x1f1b58['push'](_0x1f1b58['shift']());}};_0x96cade(++_0x5a5daf);}(_0x2dc3,0x1a7));var _0x32dc=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x2dc3[_0x2dafbe];return _0x58a45a;};'use strict';var multer=require(_0x32dc('0x0'));var util=require(_0x32dc('0x1'));var path=require(_0x32dc('0x2'));var timeout=require(_0x32dc('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x32dc('0x4'));var config=require(_0x32dc('0x5'));var controller=require(_0x32dc('0x6'));router[_0x32dc('0x7')]('/',auth[_0x32dc('0x8')](),controller['index']);router[_0x32dc('0x7')](_0x32dc('0x9'),auth[_0x32dc('0x8')](),controller[_0x32dc('0xa')]);router['get']('/:id',auth[_0x32dc('0x8')](),controller[_0x32dc('0xb')]);router[_0x32dc('0xc')]('/',auth[_0x32dc('0x8')](),controller[_0x32dc('0xd')]);router[_0x32dc('0xe')]('/:id',auth[_0x32dc('0x8')](),controller['update']);router[_0x32dc('0xf')](_0x32dc('0x10'),auth[_0x32dc('0x8')](),controller[_0x32dc('0x11')]);module['exports']=router;