b4727094ad39c9745106f18713ef1f49ddf0bb12
[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 _0xed45=['create','delete','destroy','exports','path','fs-extra','../../components/interaction/service','../../config/environment','./userProfileSection.controller','get','isAuthenticated','index','/describe','describe','/:id','show'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xed45,0x1d4));var _0x5ed4=function(_0x1035c1,_0x2d8583){_0x1035c1=_0x1035c1-0x0;var _0x308d67=_0xed45[_0x1035c1];return _0x308d67;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5ed4('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x5ed4('0x1'));var auth=require('../../components/auth/service');var interaction=require(_0x5ed4('0x2'));var config=require(_0x5ed4('0x3'));var controller=require(_0x5ed4('0x4'));router[_0x5ed4('0x5')]('/',auth[_0x5ed4('0x6')](),controller[_0x5ed4('0x7')]);router[_0x5ed4('0x5')](_0x5ed4('0x8'),auth[_0x5ed4('0x6')](),controller[_0x5ed4('0x9')]);router[_0x5ed4('0x5')](_0x5ed4('0xa'),auth['isAuthenticated'](),controller[_0x5ed4('0xb')]);router['post']('/',auth[_0x5ed4('0x6')](),controller[_0x5ed4('0xc')]);router['put'](_0x5ed4('0xa'),auth[_0x5ed4('0x6')](),controller['update']);router[_0x5ed4('0xd')]('/:id',auth[_0x5ed4('0x6')](),controller[_0x5ed4('0xe')]);module[_0x5ed4('0xf')]=router;