Built motion from commit d5e4af8c.|2.6.23
[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 _0xa4a6=['/describe','isAuthenticated','describe','/:id','create','destroy','exports','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index'];(function(_0x1db4dc,_0x6b7259){var _0x244304=function(_0x5e22a3){while(--_0x5e22a3){_0x1db4dc['push'](_0x1db4dc['shift']());}};_0x244304(++_0x6b7259);}(_0xa4a6,0x8f));var _0x6a4a=function(_0x4084cc,_0x9c102c){_0x4084cc=_0x4084cc-0x0;var _0xd47d94=_0xa4a6[_0x4084cc];return _0xd47d94;};'use strict';var multer=require(_0x6a4a('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x6a4a('0x1'));var express=require(_0x6a4a('0x2'));var router=express[_0x6a4a('0x3')]();var fs_extra=require(_0x6a4a('0x4'));var auth=require(_0x6a4a('0x5'));var interaction=require(_0x6a4a('0x6'));var config=require(_0x6a4a('0x7'));var controller=require('./memberReport.controller');router[_0x6a4a('0x8')]('/',auth['isAuthenticated'](),controller[_0x6a4a('0x9')]);router['get'](_0x6a4a('0xa'),auth[_0x6a4a('0xb')](),controller[_0x6a4a('0xc')]);router[_0x6a4a('0x8')](_0x6a4a('0xd'),auth[_0x6a4a('0xb')](),controller['show']);router['post']('/',auth[_0x6a4a('0xb')](),controller[_0x6a4a('0xe')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router['delete'](_0x6a4a('0xd'),auth['isAuthenticated'](),controller[_0x6a4a('0xf')]);module[_0x6a4a('0x10')]=router;