Built motion from commit efa66e19.|2.6.22
[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 _0x3daf=['/:id/preview','preview','run','query','post','put','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show'];(function(_0x67806a,_0x4f3778){var _0x1673f8=function(_0xcb49d7){while(--_0xcb49d7){_0x67806a['push'](_0x67806a['shift']());}};_0x1673f8(++_0x4f3778);}(_0x3daf,0x195));var _0xf3da=function(_0x1f6a84,_0x44a188){_0x1f6a84=_0x1f6a84-0x0;var _0x14da8a=_0x3daf[_0x1f6a84];return _0x14da8a;};'use strict';var multer=require(_0xf3da('0x0'));var util=require(_0xf3da('0x1'));var path=require('path');var timeout=require(_0xf3da('0x2'));var express=require(_0xf3da('0x3'));var router=express[_0xf3da('0x4')]();var fs_extra=require(_0xf3da('0x5'));var auth=require(_0xf3da('0x6'));var interaction=require(_0xf3da('0x7'));var config=require('../../config/environment');var controller=require('./analyticDefaultReport.controller');router[_0xf3da('0x8')]('/',auth[_0xf3da('0x9')](),controller[_0xf3da('0xa')]);router['get'](_0xf3da('0xb'),auth[_0xf3da('0x9')](),controller[_0xf3da('0xc')]);router[_0xf3da('0x8')](_0xf3da('0xd'),auth[_0xf3da('0x9')](),controller[_0xf3da('0xe')]);router[_0xf3da('0x8')]('/:id/run',auth[_0xf3da('0x9')](),controller[_0xf3da('0xf')]);router[_0xf3da('0x8')]('/:id/query',auth['isAuthenticated'](),controller[_0xf3da('0x10')]);router[_0xf3da('0x11')]('/',auth[_0xf3da('0x9')](),controller['create']);router[_0xf3da('0x12')](_0xf3da('0xb'),auth['isAuthenticated'](),controller['update']);router[_0xf3da('0x13')](_0xf3da('0xb'),auth[_0xf3da('0x9')](),controller[_0xf3da('0x14')]);module[_0xf3da('0x15')]=router;