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 _0x205f=['../../components/interaction/service','../../config/environment','./squareReportDetail.controller','get','index','/describe','isAuthenticated','show','post','put','/:id','update','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra'];(function(_0x16de85,_0x5b0595){var _0x28f2ea=function(_0x414b97){while(--_0x414b97){_0x16de85['push'](_0x16de85['shift']());}};_0x28f2ea(++_0x5b0595);}(_0x205f,0xea));var _0xf205=function(_0x1f7996,_0x299a14){_0x1f7996=_0x1f7996-0x0;var _0x584609=_0x205f[_0x1f7996];return _0x584609;};'use strict';var multer=require(_0xf205('0x0'));var util=require(_0xf205('0x1'));var path=require(_0xf205('0x2'));var timeout=require(_0xf205('0x3'));var express=require('express');var router=express[_0xf205('0x4')]();var fs_extra=require(_0xf205('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xf205('0x6'));var config=require(_0xf205('0x7'));var controller=require(_0xf205('0x8'));router[_0xf205('0x9')]('/',auth['isAuthenticated'](),controller[_0xf205('0xa')]);router[_0xf205('0x9')](_0xf205('0xb'),auth[_0xf205('0xc')](),controller['describe']);router[_0xf205('0x9')]('/:id',auth[_0xf205('0xc')](),controller[_0xf205('0xd')]);router[_0xf205('0xe')]('/',auth['isAuthenticated'](),controller['create']);router[_0xf205('0xf')](_0xf205('0x10'),auth[_0xf205('0xc')](),controller[_0xf205('0x11')]);router['delete'](_0xf205('0x10'),auth[_0xf205('0xc')](),controller[_0xf205('0x12')]);module[_0xf205('0x13')]=router;