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 _0x3d5a=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReportDetail.controller','get','index','isAuthenticated','describe','post','put','update','/:id','multer'];(function(_0x1f2520,_0x1457c5){var _0x2e6911=function(_0xcb1c3){while(--_0xcb1c3){_0x1f2520['push'](_0x1f2520['shift']());}};_0x2e6911(++_0x1457c5);}(_0x3d5a,0x6f));var _0xa3d5=function(_0x3fa1c7,_0x13d816){_0x3fa1c7=_0x3fa1c7-0x0;var _0x21e45d=_0x3d5a[_0x3fa1c7];return _0x21e45d;};'use strict';var multer=require(_0xa3d5('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xa3d5('0x1'));var router=express[_0xa3d5('0x2')]();var fs_extra=require(_0xa3d5('0x3'));var auth=require(_0xa3d5('0x4'));var interaction=require(_0xa3d5('0x5'));var config=require(_0xa3d5('0x6'));var controller=require(_0xa3d5('0x7'));router[_0xa3d5('0x8')]('/',auth['isAuthenticated'](),controller[_0xa3d5('0x9')]);router['get']('/describe',auth[_0xa3d5('0xa')](),controller[_0xa3d5('0xb')]);router[_0xa3d5('0x8')]('/:id',auth[_0xa3d5('0xa')](),controller['show']);router[_0xa3d5('0xc')]('/',auth[_0xa3d5('0xa')](),controller['create']);router[_0xa3d5('0xd')]('/:id',auth[_0xa3d5('0xa')](),controller[_0xa3d5('0xe')]);router['delete'](_0xa3d5('0xf'),auth[_0xa3d5('0xa')](),controller['destroy']);module['exports']=router;