48f99ef85d43d68418bea3abb86f06a0b18ca96f
[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 _0xc9f6=['/:id','show','preview','run','create','update','destroy','exports','multer','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticCustomReport.controller','isAuthenticated','index','get'];(function(_0x34ef24,_0x100d10){var _0x85799e=function(_0x595dd0){while(--_0x595dd0){_0x34ef24['push'](_0x34ef24['shift']());}};_0x85799e(++_0x100d10);}(_0xc9f6,0xaa));var _0x6c9f=function(_0x23c89d,_0x1a8b99){_0x23c89d=_0x23c89d-0x0;var _0x4db932=_0xc9f6[_0x23c89d];return _0x4db932;};'use strict';var multer=require(_0x6c9f('0x0'));var util=require('util');var path=require(_0x6c9f('0x1'));var timeout=require(_0x6c9f('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0x6c9f('0x3'));var interaction=require(_0x6c9f('0x4'));var config=require(_0x6c9f('0x5'));var controller=require(_0x6c9f('0x6'));router['get']('/',auth[_0x6c9f('0x7')](),controller[_0x6c9f('0x8')]);router[_0x6c9f('0x9')](_0x6c9f('0xa'),auth[_0x6c9f('0x7')](),controller[_0x6c9f('0xb')]);router[_0x6c9f('0x9')]('/:id/preview',auth['isAuthenticated'](),controller[_0x6c9f('0xc')]);router[_0x6c9f('0x9')]('/:id/run',auth[_0x6c9f('0x7')](),controller[_0x6c9f('0xd')]);router[_0x6c9f('0x9')]('/:id/query',auth[_0x6c9f('0x7')](),controller['query']);router['post']('/',auth[_0x6c9f('0x7')](),controller[_0x6c9f('0xe')]);router['put'](_0x6c9f('0xa'),auth[_0x6c9f('0x7')](),controller[_0x6c9f('0xf')]);router['delete'](_0x6c9f('0xa'),auth[_0x6c9f('0x7')](),controller[_0x6c9f('0x10')]);module[_0x6c9f('0x11')]=router;