Built motion from commit da24aabd.|2.6.20
[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 _0x6b0e=['put','update','delete','destroy','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','create'];(function(_0x365f2a,_0x566ba8){var _0x41216b=function(_0x2a1427){while(--_0x2a1427){_0x365f2a['push'](_0x365f2a['shift']());}};_0x41216b(++_0x566ba8);}(_0x6b0e,0x19c));var _0xe6b0=function(_0x1f44b2,_0x1fb330){_0x1f44b2=_0x1f44b2-0x0;var _0x58a2f2=_0x6b0e[_0x1f44b2];return _0x58a2f2;};'use strict';var multer=require('multer');var util=require(_0xe6b0('0x0'));var path=require(_0xe6b0('0x1'));var timeout=require('connect-timeout');var express=require(_0xe6b0('0x2'));var router=express[_0xe6b0('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xe6b0('0x4'));var interaction=require(_0xe6b0('0x5'));var config=require(_0xe6b0('0x6'));var controller=require('./analyticExtractedReport.controller');router[_0xe6b0('0x7')]('/',auth[_0xe6b0('0x8')](),controller[_0xe6b0('0x9')]);router[_0xe6b0('0x7')](_0xe6b0('0xa'),auth[_0xe6b0('0x8')](),controller[_0xe6b0('0xb')]);router[_0xe6b0('0x7')]('/:id/download',auth[_0xe6b0('0x8')](),controller['download']);router['post']('/',auth[_0xe6b0('0x8')](),controller[_0xe6b0('0xc')]);router[_0xe6b0('0xd')](_0xe6b0('0xa'),auth[_0xe6b0('0x8')](),controller[_0xe6b0('0xe')]);router[_0xe6b0('0xf')](_0xe6b0('0xa'),auth[_0xe6b0('0x8')](),controller[_0xe6b0('0x10')]);module['exports']=router;