b59ab2044d51234e7d528081fb4f539f4438ac1b
[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 _0xad7c=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','post','create','put','update','delete','exports','multer','util','connect-timeout','express'];(function(_0x102ff9,_0x907658){var _0x24fa97=function(_0x3622ff){while(--_0x3622ff){_0x102ff9['push'](_0x102ff9['shift']());}};_0x24fa97(++_0x907658);}(_0xad7c,0x7a));var _0xcad7=function(_0x5ba0c6,_0x18e4f5){_0x5ba0c6=_0x5ba0c6-0x0;var _0x3fa1df=_0xad7c[_0x5ba0c6];return _0x3fa1df;};'use strict';var multer=require(_0xcad7('0x0'));var util=require(_0xcad7('0x1'));var path=require('path');var timeout=require(_0xcad7('0x2'));var express=require(_0xcad7('0x3'));var router=express[_0xcad7('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xcad7('0x5'));var interaction=require(_0xcad7('0x6'));var config=require(_0xcad7('0x7'));var controller=require('./memberReport.controller');router[_0xcad7('0x8')]('/',auth[_0xcad7('0x9')](),controller[_0xcad7('0xa')]);router[_0xcad7('0x8')]('/describe',auth[_0xcad7('0x9')](),controller['describe']);router[_0xcad7('0x8')](_0xcad7('0xb'),auth[_0xcad7('0x9')](),controller['show']);router[_0xcad7('0xc')]('/',auth['isAuthenticated'](),controller[_0xcad7('0xd')]);router[_0xcad7('0xe')](_0xcad7('0xb'),auth[_0xcad7('0x9')](),controller[_0xcad7('0xf')]);router[_0xcad7('0x10')](_0xcad7('0xb'),auth['isAuthenticated'](),controller['destroy']);module[_0xcad7('0x11')]=router;