Built motion from commit a61a4a20.|2.5.46
[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 _0xe56c=['./analyticCustomReport.controller','index','get','/:id','isAuthenticated','show','preview','run','/:id/query','query','post','create','delete','destroy','exports','multer','util','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x4defd6,_0x37bbd3){var _0x4c9276=function(_0x1d7a3d){while(--_0x1d7a3d){_0x4defd6['push'](_0x4defd6['shift']());}};_0x4c9276(++_0x37bbd3);}(_0xe56c,0xd5));var _0xce56=function(_0x1cad1d,_0x216078){_0x1cad1d=_0x1cad1d-0x0;var _0x53f961=_0xe56c[_0x1cad1d];return _0x53f961;};'use strict';var multer=require(_0xce56('0x0'));var util=require(_0xce56('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xce56('0x2'));var router=express['Router']();var fs_extra=require(_0xce56('0x3'));var auth=require(_0xce56('0x4'));var interaction=require(_0xce56('0x5'));var config=require(_0xce56('0x6'));var controller=require(_0xce56('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0xce56('0x8')]);router[_0xce56('0x9')](_0xce56('0xa'),auth[_0xce56('0xb')](),controller[_0xce56('0xc')]);router[_0xce56('0x9')]('/:id/preview',auth['isAuthenticated'](),controller[_0xce56('0xd')]);router[_0xce56('0x9')]('/:id/run',auth[_0xce56('0xb')](),controller[_0xce56('0xe')]);router[_0xce56('0x9')](_0xce56('0xf'),auth[_0xce56('0xb')](),controller[_0xce56('0x10')]);router[_0xce56('0x11')]('/',auth['isAuthenticated'](),controller[_0xce56('0x12')]);router['put']('/:id',auth[_0xce56('0xb')](),controller['update']);router[_0xce56('0x13')](_0xce56('0xa'),auth['isAuthenticated'](),controller[_0xce56('0x14')]);module[_0xce56('0x15')]=router;