2fcb976fdfcf1fb8a91cd793d58eac3922aba38b
[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 _0x66b1=['../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileSection.controller','get','isAuthenticated','index','/describe','/:id','show','post','create','destroy','exports','multer','util','express','Router'];(function(_0x442a5d,_0x2a6745){var _0x51d134=function(_0x5cae90){while(--_0x5cae90){_0x442a5d['push'](_0x442a5d['shift']());}};_0x51d134(++_0x2a6745);}(_0x66b1,0xd4));var _0x166b=function(_0x17580b,_0x2baaba){_0x17580b=_0x17580b-0x0;var _0x549b5f=_0x66b1[_0x17580b];return _0x549b5f;};'use strict';var multer=require(_0x166b('0x0'));var util=require(_0x166b('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x166b('0x2'));var router=express[_0x166b('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x166b('0x4'));var interaction=require(_0x166b('0x5'));var config=require(_0x166b('0x6'));var controller=require(_0x166b('0x7'));router[_0x166b('0x8')]('/',auth[_0x166b('0x9')](),controller[_0x166b('0xa')]);router['get'](_0x166b('0xb'),auth[_0x166b('0x9')](),controller['describe']);router[_0x166b('0x8')](_0x166b('0xc'),auth[_0x166b('0x9')](),controller[_0x166b('0xd')]);router[_0x166b('0xe')]('/',auth[_0x166b('0x9')](),controller[_0x166b('0xf')]);router['put'](_0x166b('0xc'),auth[_0x166b('0x9')](),controller['update']);router['delete'](_0x166b('0xc'),auth[_0x166b('0x9')](),controller[_0x166b('0x10')]);module[_0x166b('0x11')]=router;