cbe4f091a8e9352b551367ee25c580b62b456209
[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 _0xab6a=['/:id','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./memberReport.controller','get','isAuthenticated','post','create','put'];(function(_0x111fb2,_0xbf8de7){var _0x1dc344=function(_0x24b87b){while(--_0x24b87b){_0x111fb2['push'](_0x111fb2['shift']());}};_0x1dc344(++_0xbf8de7);}(_0xab6a,0xd0));var _0xaab6=function(_0x192830,_0x44ba6f){_0x192830=_0x192830-0x0;var _0x4b4689=_0xab6a[_0x192830];return _0x4b4689;};'use strict';var multer=require('multer');var util=require(_0xaab6('0x0'));var path=require(_0xaab6('0x1'));var timeout=require(_0xaab6('0x2'));var express=require(_0xaab6('0x3'));var router=express[_0xaab6('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xaab6('0x5'));var interaction=require(_0xaab6('0x6'));var config=require('../../config/environment');var controller=require(_0xaab6('0x7'));router[_0xaab6('0x8')]('/',auth[_0xaab6('0x9')](),controller['index']);router[_0xaab6('0x8')]('/describe',auth[_0xaab6('0x9')](),controller['describe']);router['get']('/:id',auth[_0xaab6('0x9')](),controller['show']);router[_0xaab6('0xa')]('/',auth[_0xaab6('0x9')](),controller[_0xaab6('0xb')]);router[_0xaab6('0xc')](_0xaab6('0xd'),auth['isAuthenticated'](),controller['update']);router[_0xaab6('0xe')]('/:id',auth['isAuthenticated'](),controller[_0xaab6('0xf')]);module[_0xaab6('0x10')]=router;