322fca3416f1a28957e5653b5e3c88e6c485570e
[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 _0xeb74=['Router','fs-extra','../../config/environment','./userProfileSection.controller','get','isAuthenticated','index','/describe','describe','/:id','show','create','put','update','destroy','exports','util','path','connect-timeout','express'];(function(_0x2be7ce,_0x1f2ba6){var _0x3a7d53=function(_0x1adbf){while(--_0x1adbf){_0x2be7ce['push'](_0x2be7ce['shift']());}};_0x3a7d53(++_0x1f2ba6);}(_0xeb74,0x18c));var _0x4eb7=function(_0x40db76,_0xad7ade){_0x40db76=_0x40db76-0x0;var _0x5e312a=_0xeb74[_0x40db76];return _0x5e312a;};'use strict';var multer=require('multer');var util=require(_0x4eb7('0x0'));var path=require(_0x4eb7('0x1'));var timeout=require(_0x4eb7('0x2'));var express=require(_0x4eb7('0x3'));var router=express[_0x4eb7('0x4')]();var fs_extra=require(_0x4eb7('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x4eb7('0x6'));var controller=require(_0x4eb7('0x7'));router[_0x4eb7('0x8')]('/',auth[_0x4eb7('0x9')](),controller[_0x4eb7('0xa')]);router[_0x4eb7('0x8')](_0x4eb7('0xb'),auth[_0x4eb7('0x9')](),controller[_0x4eb7('0xc')]);router[_0x4eb7('0x8')](_0x4eb7('0xd'),auth[_0x4eb7('0x9')](),controller[_0x4eb7('0xe')]);router['post']('/',auth[_0x4eb7('0x9')](),controller[_0x4eb7('0xf')]);router[_0x4eb7('0x10')]('/:id',auth['isAuthenticated'](),controller[_0x4eb7('0x11')]);router['delete'](_0x4eb7('0xd'),auth['isAuthenticated'](),controller[_0x4eb7('0x12')]);module[_0x4eb7('0x13')]=router;