8cc48502a52af4e1681db52c936796ea57c15170
[motion2.git] / server / api / analyticCustomReport / 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 _0xceef=['express','Router','fs-extra','../../components/interaction/service','../../config/environment','./analyticCustomReport.controller','get','isAuthenticated','index','/:id','show','preview','/:id/run','run','query','create','put','update','exports','multer','util','connect-timeout'];(function(_0x2ad127,_0x192754){var _0xe51768=function(_0xacb60c){while(--_0xacb60c){_0x2ad127['push'](_0x2ad127['shift']());}};_0xe51768(++_0x192754);}(_0xceef,0x189));var _0xfcee=function(_0x25fded,_0x34216e){_0x25fded=_0x25fded-0x0;var _0x269156=_0xceef[_0x25fded];return _0x269156;};'use strict';var multer=require(_0xfcee('0x0'));var util=require(_0xfcee('0x1'));var path=require('path');var timeout=require(_0xfcee('0x2'));var express=require(_0xfcee('0x3'));var router=express[_0xfcee('0x4')]();var fs_extra=require(_0xfcee('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xfcee('0x6'));var config=require(_0xfcee('0x7'));var controller=require(_0xfcee('0x8'));router[_0xfcee('0x9')]('/',auth[_0xfcee('0xa')](),controller[_0xfcee('0xb')]);router[_0xfcee('0x9')](_0xfcee('0xc'),auth['isAuthenticated'](),controller[_0xfcee('0xd')]);router[_0xfcee('0x9')]('/:id/preview',auth[_0xfcee('0xa')](),controller[_0xfcee('0xe')]);router[_0xfcee('0x9')](_0xfcee('0xf'),auth[_0xfcee('0xa')](),controller[_0xfcee('0x10')]);router[_0xfcee('0x9')]('/:id/query',auth['isAuthenticated'](),controller[_0xfcee('0x11')]);router['post']('/',auth[_0xfcee('0xa')](),controller[_0xfcee('0x12')]);router[_0xfcee('0x13')](_0xfcee('0xc'),auth[_0xfcee('0xa')](),controller[_0xfcee('0x14')]);router['delete'](_0xfcee('0xc'),auth[_0xfcee('0xa')](),controller['destroy']);module[_0xfcee('0x15')]=router;