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 _0xcb47=['connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','show','post','create','put','/:id','update','delete','destroy','exports','multer','path'];(function(_0x23435a,_0x12106e){var _0x5ca6a6=function(_0x346a57){while(--_0x346a57){_0x23435a['push'](_0x23435a['shift']());}};_0x5ca6a6(++_0x12106e);}(_0xcb47,0xa9));var _0x7cb4=function(_0x7abd7,_0x1ca3f9){_0x7abd7=_0x7abd7-0x0;var _0x3a2577=_0xcb47[_0x7abd7];return _0x3a2577;};'use strict';var multer=require(_0x7cb4('0x0'));var util=require('util');var path=require(_0x7cb4('0x1'));var timeout=require(_0x7cb4('0x2'));var express=require(_0x7cb4('0x3'));var router=express[_0x7cb4('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x7cb4('0x5'));var config=require(_0x7cb4('0x6'));var controller=require('./squareReport.controller');router[_0x7cb4('0x7')]('/',auth[_0x7cb4('0x8')](),controller['index']);router[_0x7cb4('0x7')](_0x7cb4('0x9'),auth[_0x7cb4('0x8')](),controller['describe']);router['get']('/:id',auth[_0x7cb4('0x8')](),controller[_0x7cb4('0xa')]);router[_0x7cb4('0xb')]('/',auth[_0x7cb4('0x8')](),controller[_0x7cb4('0xc')]);router[_0x7cb4('0xd')](_0x7cb4('0xe'),auth['isAuthenticated'](),controller[_0x7cb4('0xf')]);router[_0x7cb4('0x10')](_0x7cb4('0xe'),auth[_0x7cb4('0x8')](),controller[_0x7cb4('0x11')]);module[_0x7cb4('0x12')]=router;