Built motion from commit b5413ace.|2.6.9
[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 _0x0bee=['multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','index','/describe','isAuthenticated','describe','show','create','/:id','update'];(function(_0x1facfa,_0x1acf7d){var _0x9ec701=function(_0x115e37){while(--_0x115e37){_0x1facfa['push'](_0x1facfa['shift']());}};_0x9ec701(++_0x1acf7d);}(_0x0bee,0x132));var _0xe0be=function(_0x1deccd,_0x3dca16){_0x1deccd=_0x1deccd-0x0;var _0x3a1603=_0x0bee[_0x1deccd];return _0x3a1603;};'use strict';var multer=require(_0xe0be('0x0'));var util=require(_0xe0be('0x1'));var path=require(_0xe0be('0x2'));var timeout=require(_0xe0be('0x3'));var express=require(_0xe0be('0x4'));var router=express[_0xe0be('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xe0be('0x6'));var interaction=require(_0xe0be('0x7'));var config=require('../../config/environment');var controller=require('./memberReport.controller');router[_0xe0be('0x8')]('/',auth['isAuthenticated'](),controller[_0xe0be('0x9')]);router[_0xe0be('0x8')](_0xe0be('0xa'),auth[_0xe0be('0xb')](),controller[_0xe0be('0xc')]);router['get']('/:id',auth[_0xe0be('0xb')](),controller[_0xe0be('0xd')]);router['post']('/',auth[_0xe0be('0xb')](),controller[_0xe0be('0xe')]);router['put'](_0xe0be('0xf'),auth[_0xe0be('0xb')](),controller[_0xe0be('0x10')]);router['delete'](_0xe0be('0xf'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;