Built motion from commit 9d1906d1.|2.5.40
[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 _0xb6ba=['get','isAuthenticated','index','/:id','show','preview','/:id/run','run','/:id/query','query','post','create','put','update','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','./analyticCustomReport.controller'];(function(_0x389c7a,_0x22ffe6){var _0x3ae9d8=function(_0x3f057a){while(--_0x3f057a){_0x389c7a['push'](_0x389c7a['shift']());}};_0x3ae9d8(++_0x22ffe6);}(_0xb6ba,0x19a));var _0xab6b=function(_0x43b584,_0x20a6bd){_0x43b584=_0x43b584-0x0;var _0x48f27b=_0xb6ba[_0x43b584];return _0x48f27b;};'use strict';var multer=require(_0xab6b('0x0'));var util=require('util');var path=require(_0xab6b('0x1'));var timeout=require(_0xab6b('0x2'));var express=require(_0xab6b('0x3'));var router=express[_0xab6b('0x4')]();var fs_extra=require(_0xab6b('0x5'));var auth=require(_0xab6b('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xab6b('0x7'));router[_0xab6b('0x8')]('/',auth[_0xab6b('0x9')](),controller[_0xab6b('0xa')]);router['get'](_0xab6b('0xb'),auth[_0xab6b('0x9')](),controller[_0xab6b('0xc')]);router['get']('/:id/preview',auth['isAuthenticated'](),controller[_0xab6b('0xd')]);router[_0xab6b('0x8')](_0xab6b('0xe'),auth[_0xab6b('0x9')](),controller[_0xab6b('0xf')]);router['get'](_0xab6b('0x10'),auth[_0xab6b('0x9')](),controller[_0xab6b('0x11')]);router[_0xab6b('0x12')]('/',auth[_0xab6b('0x9')](),controller[_0xab6b('0x13')]);router[_0xab6b('0x14')](_0xab6b('0xb'),auth['isAuthenticated'](),controller[_0xab6b('0x15')]);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);module['exports']=router;