Built motion from commit 0900f080.|2.5.45
[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 _0x51b0=['index','describe','/:id','show','post','create','put','update','delete','destroy','exports','multer','path','express','../../components/interaction/service','./userProfileSection.controller','get','isAuthenticated'];(function(_0x23d1f4,_0x4bd44a){var _0x393217=function(_0xbd5240){while(--_0xbd5240){_0x23d1f4['push'](_0x23d1f4['shift']());}};_0x393217(++_0x4bd44a);}(_0x51b0,0x197));var _0x051b=function(_0x5b644e,_0x2e5e07){_0x5b644e=_0x5b644e-0x0;var _0x49c6bf=_0x51b0[_0x5b644e];return _0x49c6bf;};'use strict';var multer=require(_0x051b('0x0'));var util=require('util');var path=require(_0x051b('0x1'));var timeout=require('connect-timeout');var express=require(_0x051b('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x051b('0x3'));var config=require('../../config/environment');var controller=require(_0x051b('0x4'));router[_0x051b('0x5')]('/',auth[_0x051b('0x6')](),controller[_0x051b('0x7')]);router['get']('/describe',auth[_0x051b('0x6')](),controller[_0x051b('0x8')]);router[_0x051b('0x5')](_0x051b('0x9'),auth['isAuthenticated'](),controller[_0x051b('0xa')]);router[_0x051b('0xb')]('/',auth[_0x051b('0x6')](),controller[_0x051b('0xc')]);router[_0x051b('0xd')](_0x051b('0x9'),auth[_0x051b('0x6')](),controller[_0x051b('0xe')]);router[_0x051b('0xf')](_0x051b('0x9'),auth[_0x051b('0x6')](),controller[_0x051b('0x10')]);module[_0x051b('0x11')]=router;