Built motion from commit 994c64e1.|2.6.1
[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 _0xc2b9=['isAuthenticated','index','get','describe','/:id','show','post','create','put','update','destroy','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x3abd23,_0x35e7ce){var _0x4afa51=function(_0x5b116e){while(--_0x5b116e){_0x3abd23['push'](_0x3abd23['shift']());}};_0x4afa51(++_0x35e7ce);}(_0xc2b9,0x1f1));var _0x9c2b=function(_0x39c3bf,_0x582360){_0x39c3bf=_0x39c3bf-0x0;var _0x4b5e40=_0xc2b9[_0x39c3bf];return _0x4b5e40;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x9c2b('0x0'));var timeout=require(_0x9c2b('0x1'));var express=require(_0x9c2b('0x2'));var router=express[_0x9c2b('0x3')]();var fs_extra=require(_0x9c2b('0x4'));var auth=require(_0x9c2b('0x5'));var interaction=require(_0x9c2b('0x6'));var config=require('../../config/environment');var controller=require('./userProfileSection.controller');router['get']('/',auth[_0x9c2b('0x7')](),controller[_0x9c2b('0x8')]);router[_0x9c2b('0x9')]('/describe',auth[_0x9c2b('0x7')](),controller[_0x9c2b('0xa')]);router[_0x9c2b('0x9')](_0x9c2b('0xb'),auth[_0x9c2b('0x7')](),controller[_0x9c2b('0xc')]);router[_0x9c2b('0xd')]('/',auth[_0x9c2b('0x7')](),controller[_0x9c2b('0xe')]);router[_0x9c2b('0xf')](_0x9c2b('0xb'),auth[_0x9c2b('0x7')](),controller[_0x9c2b('0x10')]);router['delete'](_0x9c2b('0xb'),auth[_0x9c2b('0x7')](),controller[_0x9c2b('0x11')]);module['exports']=router;