200cc148c402f487e4cee07066f7b08c46ee94d7
[motion2.git] / server / api / memberReport / 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 _0xf063=['destroy','multer','util','path','Router','fs-extra','../../components/auth/service','../../config/environment','./memberReport.controller','get','index','/describe','isAuthenticated','describe','/:id','create','put','update'];(function(_0x245c4f,_0x34b70f){var _0x3157a1=function(_0x18bfc7){while(--_0x18bfc7){_0x245c4f['push'](_0x245c4f['shift']());}};_0x3157a1(++_0x34b70f);}(_0xf063,0xeb));var _0x3f06=function(_0xf4cebd,_0x241512){_0xf4cebd=_0xf4cebd-0x0;var _0x5de16f=_0xf063[_0xf4cebd];return _0x5de16f;};'use strict';var multer=require(_0x3f06('0x0'));var util=require(_0x3f06('0x1'));var path=require(_0x3f06('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x3f06('0x3')]();var fs_extra=require(_0x3f06('0x4'));var auth=require(_0x3f06('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x3f06('0x6'));var controller=require(_0x3f06('0x7'));router[_0x3f06('0x8')]('/',auth['isAuthenticated'](),controller[_0x3f06('0x9')]);router[_0x3f06('0x8')](_0x3f06('0xa'),auth[_0x3f06('0xb')](),controller[_0x3f06('0xc')]);router['get'](_0x3f06('0xd'),auth[_0x3f06('0xb')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0x3f06('0xe')]);router[_0x3f06('0xf')](_0x3f06('0xd'),auth[_0x3f06('0xb')](),controller[_0x3f06('0x10')]);router['delete'](_0x3f06('0xd'),auth[_0x3f06('0xb')](),controller[_0x3f06('0x11')]);module['exports']=router;