Built motion from commit 5b761a7b.|2.5.36
[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 _0x7cf5=['destroy','exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','isAuthenticated','get','/describe','describe','/:id','show','post','put','update','delete'];(function(_0x2e34f2,_0x445c47){var _0x98d46=function(_0x426227){while(--_0x426227){_0x2e34f2['push'](_0x2e34f2['shift']());}};_0x98d46(++_0x445c47);}(_0x7cf5,0xfe));var _0x57cf=function(_0x57649e,_0x1c0854){_0x57649e=_0x57649e-0x0;var _0x43fdda=_0x7cf5[_0x57649e];return _0x43fdda;};'use strict';var multer=require('multer');var util=require(_0x57cf('0x0'));var path=require(_0x57cf('0x1'));var timeout=require(_0x57cf('0x2'));var express=require('express');var router=express[_0x57cf('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x57cf('0x4'));var interaction=require(_0x57cf('0x5'));var config=require('../../config/environment');var controller=require('./userProfileSection.controller');router['get']('/',auth[_0x57cf('0x6')](),controller['index']);router[_0x57cf('0x7')](_0x57cf('0x8'),auth['isAuthenticated'](),controller[_0x57cf('0x9')]);router['get'](_0x57cf('0xa'),auth[_0x57cf('0x6')](),controller[_0x57cf('0xb')]);router[_0x57cf('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0x57cf('0xd')]('/:id',auth[_0x57cf('0x6')](),controller[_0x57cf('0xe')]);router[_0x57cf('0xf')](_0x57cf('0xa'),auth['isAuthenticated'](),controller[_0x57cf('0x10')]);module[_0x57cf('0x11')]=router;