82ea9da98c2a60317ee9612d32fc3ba83fac0027
[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 _0xd03b=['fs-extra','../../components/interaction/service','../../config/environment','./userProfileSection.controller','get','index','isAuthenticated','describe','/:id','post','create','update','delete','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x2685de,_0x4a6cdc){var _0x455fb1=function(_0x58edd3){while(--_0x58edd3){_0x2685de['push'](_0x2685de['shift']());}};_0x455fb1(++_0x4a6cdc);}(_0xd03b,0x19f));var _0xbd03=function(_0x45453f,_0x5e5f6b){_0x45453f=_0x45453f-0x0;var _0x5cb17c=_0xd03b[_0x45453f];return _0x5cb17c;};'use strict';var multer=require(_0xbd03('0x0'));var util=require(_0xbd03('0x1'));var path=require(_0xbd03('0x2'));var timeout=require(_0xbd03('0x3'));var express=require(_0xbd03('0x4'));var router=express['Router']();var fs_extra=require(_0xbd03('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xbd03('0x6'));var config=require(_0xbd03('0x7'));var controller=require(_0xbd03('0x8'));router[_0xbd03('0x9')]('/',auth['isAuthenticated'](),controller[_0xbd03('0xa')]);router[_0xbd03('0x9')]('/describe',auth[_0xbd03('0xb')](),controller[_0xbd03('0xc')]);router[_0xbd03('0x9')](_0xbd03('0xd'),auth[_0xbd03('0xb')](),controller['show']);router[_0xbd03('0xe')]('/',auth['isAuthenticated'](),controller[_0xbd03('0xf')]);router['put'](_0xbd03('0xd'),auth['isAuthenticated'](),controller[_0xbd03('0x10')]);router[_0xbd03('0x11')](_0xbd03('0xd'),auth[_0xbd03('0xb')](),controller[_0xbd03('0x12')]);module[_0xbd03('0x13')]=router;