e6a86a720df4d698e42d2fdbcc3c05a2ffa1cbda
[motion2.git] / server / api / analyticExtractedReport / 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 _0xf04c=['download','post','put','/:id','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticExtractedReport.controller','isAuthenticated','index','show','get'];(function(_0x38223f,_0x3a0dfc){var _0x3e3fab=function(_0x2b40d0){while(--_0x2b40d0){_0x38223f['push'](_0x38223f['shift']());}};_0x3e3fab(++_0x3a0dfc);}(_0xf04c,0xfd));var _0xcf04=function(_0x5ae90c,_0x2cfb8a){_0x5ae90c=_0x5ae90c-0x0;var _0x45ebd1=_0xf04c[_0x5ae90c];return _0x45ebd1;};'use strict';var multer=require(_0xcf04('0x0'));var util=require(_0xcf04('0x1'));var path=require(_0xcf04('0x2'));var timeout=require(_0xcf04('0x3'));var express=require(_0xcf04('0x4'));var router=express['Router']();var auth=require(_0xcf04('0x5'));var interaction=require(_0xcf04('0x6'));var config=require(_0xcf04('0x7'));var controller=require(_0xcf04('0x8'));router['get']('/',auth[_0xcf04('0x9')](),controller[_0xcf04('0xa')]);router['get']('/:id',auth[_0xcf04('0x9')](),controller[_0xcf04('0xb')]);router[_0xcf04('0xc')]('/:id/download',auth[_0xcf04('0x9')](),controller[_0xcf04('0xd')]);router[_0xcf04('0xe')]('/',auth['isAuthenticated'](),controller['create']);router[_0xcf04('0xf')](_0xcf04('0x10'),auth[_0xcf04('0x9')](),controller['update']);router['delete'](_0xcf04('0x10'),auth[_0xcf04('0x9')](),controller[_0xcf04('0x11')]);module[_0xcf04('0x12')]=router;