Built motion from commit a679711e.|2.6.15
[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 _0x04b0=['../../components/interaction/service','./analyticCustomReport.controller','isAuthenticated','index','get','show','/:id/preview','preview','/:id/run','/:id/query','query','post','put','/:id','destroy','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service'];(function(_0x38cc49,_0x4c5995){var _0x2288f1=function(_0x1bd2f4){while(--_0x1bd2f4){_0x38cc49['push'](_0x38cc49['shift']());}};_0x2288f1(++_0x4c5995);}(_0x04b0,0x8d));var _0x004b=function(_0x21f14b,_0x8db9c7){_0x21f14b=_0x21f14b-0x0;var _0x242523=_0x04b0[_0x21f14b];return _0x242523;};'use strict';var multer=require(_0x004b('0x0'));var util=require(_0x004b('0x1'));var path=require('path');var timeout=require(_0x004b('0x2'));var express=require('express');var router=express[_0x004b('0x3')]();var fs_extra=require(_0x004b('0x4'));var auth=require(_0x004b('0x5'));var interaction=require(_0x004b('0x6'));var config=require('../../config/environment');var controller=require(_0x004b('0x7'));router['get']('/',auth[_0x004b('0x8')](),controller[_0x004b('0x9')]);router[_0x004b('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x004b('0xb')]);router['get'](_0x004b('0xc'),auth['isAuthenticated'](),controller[_0x004b('0xd')]);router[_0x004b('0xa')](_0x004b('0xe'),auth[_0x004b('0x8')](),controller['run']);router[_0x004b('0xa')](_0x004b('0xf'),auth['isAuthenticated'](),controller[_0x004b('0x10')]);router[_0x004b('0x11')]('/',auth[_0x004b('0x8')](),controller['create']);router[_0x004b('0x12')](_0x004b('0x13'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x004b('0x13'),auth[_0x004b('0x8')](),controller[_0x004b('0x14')]);module['exports']=router;