060e0d7507247b6dbe315e4f9a2bb04022246d7a
[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 _0xbaef=['get','isAuthenticated','show','/:id/preview','/:id/run','/:id/query','query','post','create','/:id','update','delete','destroy','exports','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x4fc41a,_0x51b85b){var _0x4c36a9=function(_0x1f42cd){while(--_0x1f42cd){_0x4fc41a['push'](_0x4fc41a['shift']());}};_0x4c36a9(++_0x51b85b);}(_0xbaef,0xae));var _0xfbae=function(_0x5714e0,_0xbf4ccd){_0x5714e0=_0x5714e0-0x0;var _0x348053=_0xbaef[_0x5714e0];return _0x348053;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xfbae('0x0'));var timeout=require(_0xfbae('0x1'));var express=require('express');var router=express[_0xfbae('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0xfbae('0x3'));var interaction=require(_0xfbae('0x4'));var config=require(_0xfbae('0x5'));var controller=require('./analyticCustomReport.controller');router[_0xfbae('0x6')]('/',auth[_0xfbae('0x7')](),controller['index']);router[_0xfbae('0x6')]('/:id',auth[_0xfbae('0x7')](),controller[_0xfbae('0x8')]);router[_0xfbae('0x6')](_0xfbae('0x9'),auth[_0xfbae('0x7')](),controller['preview']);router[_0xfbae('0x6')](_0xfbae('0xa'),auth['isAuthenticated'](),controller['run']);router[_0xfbae('0x6')](_0xfbae('0xb'),auth[_0xfbae('0x7')](),controller[_0xfbae('0xc')]);router[_0xfbae('0xd')]('/',auth[_0xfbae('0x7')](),controller[_0xfbae('0xe')]);router['put'](_0xfbae('0xf'),auth[_0xfbae('0x7')](),controller[_0xfbae('0x10')]);router[_0xfbae('0x11')]('/:id',auth['isAuthenticated'](),controller[_0xfbae('0x12')]);module[_0xfbae('0x13')]=router;