Built motion from commit 9e1ec266.|2.6.28
[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 _0x67f1=['exports','path','Router','fs-extra','../../components/auth/service','../../config/environment','./userProfileSection.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','put','update','delete'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x67f1,0xb5));var _0x167f=function(_0x3ba82e,_0x2ce183){_0x3ba82e=_0x3ba82e-0x0;var _0xfef60=_0x67f1[_0x3ba82e];return _0xfef60;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x167f('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x167f('0x1')]();var fs_extra=require(_0x167f('0x2'));var auth=require(_0x167f('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x167f('0x4'));var controller=require(_0x167f('0x5'));router[_0x167f('0x6')]('/',auth[_0x167f('0x7')](),controller[_0x167f('0x8')]);router[_0x167f('0x6')](_0x167f('0x9'),auth[_0x167f('0x7')](),controller[_0x167f('0xa')]);router[_0x167f('0x6')](_0x167f('0xb'),auth[_0x167f('0x7')](),controller[_0x167f('0xc')]);router[_0x167f('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x167f('0xe')](_0x167f('0xb'),auth['isAuthenticated'](),controller[_0x167f('0xf')]);router[_0x167f('0x10')](_0x167f('0xb'),auth['isAuthenticated'](),controller['destroy']);module[_0x167f('0x11')]=router;