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 _0x29a5=['exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./squareReport.controller','get','index','/describe','isAuthenticated','describe','show','post','/:id','update'];(function(_0x1ddc20,_0x344515){var _0x273539=function(_0x3c3770){while(--_0x3c3770){_0x1ddc20['push'](_0x1ddc20['shift']());}};_0x273539(++_0x344515);}(_0x29a5,0x6d));var _0x529a=function(_0x4a7631,_0x2c85b9){_0x4a7631=_0x4a7631-0x0;var _0x1a5a6f=_0x29a5[_0x4a7631];return _0x1a5a6f;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x529a('0x0'));var timeout=require(_0x529a('0x1'));var express=require(_0x529a('0x2'));var router=express[_0x529a('0x3')]();var fs_extra=require(_0x529a('0x4'));var auth=require(_0x529a('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x529a('0x6'));var controller=require(_0x529a('0x7'));router[_0x529a('0x8')]('/',auth['isAuthenticated'](),controller[_0x529a('0x9')]);router[_0x529a('0x8')](_0x529a('0xa'),auth[_0x529a('0xb')](),controller[_0x529a('0xc')]);router[_0x529a('0x8')]('/:id',auth[_0x529a('0xb')](),controller[_0x529a('0xd')]);router[_0x529a('0xe')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x529a('0xf'),auth[_0x529a('0xb')](),controller[_0x529a('0x10')]);router['delete']('/:id',auth[_0x529a('0xb')](),controller['destroy']);module[_0x529a('0x11')]=router;