Built motion from commit d1eab355.|2.6.28
[motion2.git] / server / api / analyticDefaultReport / 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 _0xf883=['create','update','delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./analyticDefaultReport.controller','get','isAuthenticated','index','show','preview','/:id/run','post'];(function(_0xc93070,_0x3d0d26){var _0x141982=function(_0xa2cb1f){while(--_0xa2cb1f){_0xc93070['push'](_0xc93070['shift']());}};_0x141982(++_0x3d0d26);}(_0xf883,0xd6));var _0x3f88=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf883[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x3f88('0x0'));var util=require(_0x3f88('0x1'));var path=require(_0x3f88('0x2'));var timeout=require(_0x3f88('0x3'));var express=require(_0x3f88('0x4'));var router=express[_0x3f88('0x5')]();var fs_extra=require(_0x3f88('0x6'));var auth=require(_0x3f88('0x7'));var interaction=require(_0x3f88('0x8'));var config=require('../../config/environment');var controller=require(_0x3f88('0x9'));router[_0x3f88('0xa')]('/',auth[_0x3f88('0xb')](),controller[_0x3f88('0xc')]);router[_0x3f88('0xa')]('/:id',auth[_0x3f88('0xb')](),controller[_0x3f88('0xd')]);router[_0x3f88('0xa')]('/:id/preview',auth[_0x3f88('0xb')](),controller[_0x3f88('0xe')]);router[_0x3f88('0xa')](_0x3f88('0xf'),auth[_0x3f88('0xb')](),controller['run']);router[_0x3f88('0xa')]('/:id/query',auth[_0x3f88('0xb')](),controller['query']);router[_0x3f88('0x10')]('/',auth['isAuthenticated'](),controller[_0x3f88('0x11')]);router['put']('/:id',auth[_0x3f88('0xb')](),controller[_0x3f88('0x12')]);router[_0x3f88('0x13')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x3f88('0x14')]=router;