Built motion from commit e1760111.|2.6.18
[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 _0xdbed=['index','/:id','preview','/:id/run','run','query','post','put','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','get','isAuthenticated'];(function(_0x1116ac,_0xcbe059){var _0x3e806b=function(_0x33b585){while(--_0x33b585){_0x1116ac['push'](_0x1116ac['shift']());}};_0x3e806b(++_0xcbe059);}(_0xdbed,0xca));var _0xddbe=function(_0x27dee5,_0x527ebf){_0x27dee5=_0x27dee5-0x0;var _0x33aa08=_0xdbed[_0x27dee5];return _0x33aa08;};'use strict';var multer=require(_0xddbe('0x0'));var util=require(_0xddbe('0x1'));var path=require(_0xddbe('0x2'));var timeout=require(_0xddbe('0x3'));var express=require('express');var router=express[_0xddbe('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./analyticDefaultReport.controller');router[_0xddbe('0x5')]('/',auth[_0xddbe('0x6')](),controller[_0xddbe('0x7')]);router[_0xddbe('0x5')](_0xddbe('0x8'),auth[_0xddbe('0x6')](),controller['show']);router[_0xddbe('0x5')]('/:id/preview',auth['isAuthenticated'](),controller[_0xddbe('0x9')]);router[_0xddbe('0x5')](_0xddbe('0xa'),auth[_0xddbe('0x6')](),controller[_0xddbe('0xb')]);router['get']('/:id/query',auth['isAuthenticated'](),controller[_0xddbe('0xc')]);router[_0xddbe('0xd')]('/',auth[_0xddbe('0x6')](),controller['create']);router[_0xddbe('0xe')](_0xddbe('0x8'),auth[_0xddbe('0x6')](),controller[_0xddbe('0xf')]);router[_0xddbe('0x10')](_0xddbe('0x8'),auth[_0xddbe('0x6')](),controller[_0xddbe('0x11')]);module[_0xddbe('0x12')]=router;