Built motion from commit da617fac.|2.6.6
[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 _0x6991=['multer','util','path','fs-extra','../../components/interaction/service','get','isAuthenticated','describe','/:id','create','put','update','destroy','exports'];(function(_0x565d5f,_0x2bf262){var _0x3a3b58=function(_0x3c783f){while(--_0x3c783f){_0x565d5f['push'](_0x565d5f['shift']());}};_0x3a3b58(++_0x2bf262);}(_0x6991,0x9a));var _0x1699=function(_0x1b828b,_0x344400){_0x1b828b=_0x1b828b-0x0;var _0x98da1a=_0x6991[_0x1b828b];return _0x98da1a;};'use strict';var multer=require(_0x1699('0x0'));var util=require(_0x1699('0x1'));var path=require(_0x1699('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x1699('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x1699('0x4'));var config=require('../../config/environment');var controller=require('./userProfileSection.controller');router[_0x1699('0x5')]('/',auth[_0x1699('0x6')](),controller['index']);router['get']('/describe',auth['isAuthenticated'](),controller[_0x1699('0x7')]);router[_0x1699('0x5')](_0x1699('0x8'),auth[_0x1699('0x6')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0x1699('0x9')]);router[_0x1699('0xa')](_0x1699('0x8'),auth[_0x1699('0x6')](),controller[_0x1699('0xb')]);router['delete'](_0x1699('0x8'),auth[_0x1699('0x6')](),controller[_0x1699('0xc')]);module[_0x1699('0xd')]=router;