Built motion from commit (unavailable).|2.4.19
[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 _0x683c=['./analyticCustomReport.controller','get','isAuthenticated','/:id','show','preview','run','query','post','create','update','delete','destroy','exports','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service'];(function(_0x2ad6ad,_0xa4b603){var _0xb9d368=function(_0x45f96d){while(--_0x45f96d){_0x2ad6ad['push'](_0x2ad6ad['shift']());}};_0xb9d368(++_0xa4b603);}(_0x683c,0xae));var _0xc683=function(_0x255dfd,_0x51cbf7){_0x255dfd=_0x255dfd-0x0;var _0x5ea938=_0x683c[_0x255dfd];return _0x5ea938;};'use strict';var multer=require('multer');var util=require(_0xc683('0x0'));var path=require(_0xc683('0x1'));var timeout=require(_0xc683('0x2'));var express=require(_0xc683('0x3'));var router=express['Router']();var auth=require(_0xc683('0x4'));var interaction=require(_0xc683('0x5'));var config=require('../../config/environment');var controller=require(_0xc683('0x6'));router[_0xc683('0x7')]('/',auth[_0xc683('0x8')](),controller['index']);router[_0xc683('0x7')](_0xc683('0x9'),auth['isAuthenticated'](),controller[_0xc683('0xa')]);router['get']('/:id/preview',auth[_0xc683('0x8')](),controller[_0xc683('0xb')]);router[_0xc683('0x7')]('/:id/run',auth[_0xc683('0x8')](),controller[_0xc683('0xc')]);router[_0xc683('0x7')]('/:id/query',auth[_0xc683('0x8')](),controller[_0xc683('0xd')]);router[_0xc683('0xe')]('/',auth['isAuthenticated'](),controller[_0xc683('0xf')]);router['put']('/:id',auth[_0xc683('0x8')](),controller[_0xc683('0x10')]);router[_0xc683('0x11')](_0xc683('0x9'),auth[_0xc683('0x8')](),controller[_0xc683('0x12')]);module[_0xc683('0x13')]=router;