1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xff24=['post','create','put','update','/:id','destroy','exports','multer','util','path','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','./analyticDefaultReport.controller','isAuthenticated','index','get','show','/:id/preview','preview','/:id/run','run','/:id/query','query'];(function(_0x3476dd,_0x2ccef6){var _0x58fe3c=function(_0xdfc2fd){while(--_0xdfc2fd){_0x3476dd['push'](_0x3476dd['shift']());}};_0x58fe3c(++_0x2ccef6);}(_0xff24,0xb6));var _0x4ff2=function(_0x1b902b,_0x36a1f6){_0x1b902b=_0x1b902b-0x0;var _0x58c4af=_0xff24[_0x1b902b];return _0x58c4af;};'use strict';var multer=require(_0x4ff2('0x0'));var util=require(_0x4ff2('0x1'));var path=require(_0x4ff2('0x2'));var timeout=require(_0x4ff2('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x4ff2('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x4ff2('0x5'));var config=require(_0x4ff2('0x6'));var controller=require(_0x4ff2('0x7'));router['get']('/',auth[_0x4ff2('0x8')](),controller[_0x4ff2('0x9')]);router[_0x4ff2('0xa')]('/:id',auth[_0x4ff2('0x8')](),controller[_0x4ff2('0xb')]);router[_0x4ff2('0xa')](_0x4ff2('0xc'),auth[_0x4ff2('0x8')](),controller[_0x4ff2('0xd')]);router[_0x4ff2('0xa')](_0x4ff2('0xe'),auth[_0x4ff2('0x8')](),controller[_0x4ff2('0xf')]);router[_0x4ff2('0xa')](_0x4ff2('0x10'),auth['isAuthenticated'](),controller[_0x4ff2('0x11')]);router[_0x4ff2('0x12')]('/',auth['isAuthenticated'](),controller[_0x4ff2('0x13')]);router[_0x4ff2('0x14')]('/:id',auth[_0x4ff2('0x8')](),controller[_0x4ff2('0x15')]);router['delete'](_0x4ff2('0x16'),auth[_0x4ff2('0x8')](),controller[_0x4ff2('0x17')]);module[_0x4ff2('0x18')]=router;