a67635f9d791e6d5b5769a7ca1acd8026b131ad5
[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 _0xf0f8=['/:id/preview','preview','run','/:id/query','query','post','create','/:id','delete','destroy','exports','multer','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticCustomReport.controller','get','index','isAuthenticated','show'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0xf0f8,0x67));var _0x8f0f=function(_0x3df7c9,_0x19f87d){_0x3df7c9=_0x3df7c9-0x0;var _0x39455f=_0xf0f8[_0x3df7c9];return _0x39455f;};'use strict';var multer=require(_0x8f0f('0x0'));var util=require(_0x8f0f('0x1'));var path=require(_0x8f0f('0x2'));var timeout=require('connect-timeout');var express=require(_0x8f0f('0x3'));var router=express['Router']();var auth=require(_0x8f0f('0x4'));var interaction=require(_0x8f0f('0x5'));var config=require(_0x8f0f('0x6'));var controller=require(_0x8f0f('0x7'));router[_0x8f0f('0x8')]('/',auth['isAuthenticated'](),controller[_0x8f0f('0x9')]);router[_0x8f0f('0x8')]('/:id',auth[_0x8f0f('0xa')](),controller[_0x8f0f('0xb')]);router[_0x8f0f('0x8')](_0x8f0f('0xc'),auth[_0x8f0f('0xa')](),controller[_0x8f0f('0xd')]);router[_0x8f0f('0x8')]('/:id/run',auth[_0x8f0f('0xa')](),controller[_0x8f0f('0xe')]);router['get'](_0x8f0f('0xf'),auth[_0x8f0f('0xa')](),controller[_0x8f0f('0x10')]);router[_0x8f0f('0x11')]('/',auth[_0x8f0f('0xa')](),controller[_0x8f0f('0x12')]);router['put'](_0x8f0f('0x13'),auth[_0x8f0f('0xa')](),controller['update']);router[_0x8f0f('0x14')](_0x8f0f('0x13'),auth[_0x8f0f('0xa')](),controller[_0x8f0f('0x15')]);module[_0x8f0f('0x16')]=router;