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 _0x200e=['/describe','describe','create','put','update','/:id','destroy','exports','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','./squareReportDetail.controller','get','isAuthenticated','index'];(function(_0x4199a9,_0xf0a5c8){var _0x4aef66=function(_0x49ed67){while(--_0x49ed67){_0x4199a9['push'](_0x4199a9['shift']());}};_0x4aef66(++_0xf0a5c8);}(_0x200e,0x15e));var _0xe200=function(_0x3303d7,_0x32b4f5){_0x3303d7=_0x3303d7-0x0;var _0x52bf89=_0x200e[_0x3303d7];return _0x52bf89;};'use strict';var multer=require('multer');var util=require(_0xe200('0x0'));var path=require('path');var timeout=require(_0xe200('0x1'));var express=require(_0xe200('0x2'));var router=express[_0xe200('0x3')]();var fs_extra=require(_0xe200('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xe200('0x5'));var config=require('../../config/environment');var controller=require(_0xe200('0x6'));router[_0xe200('0x7')]('/',auth[_0xe200('0x8')](),controller[_0xe200('0x9')]);router[_0xe200('0x7')](_0xe200('0xa'),auth[_0xe200('0x8')](),controller[_0xe200('0xb')]);router[_0xe200('0x7')]('/:id',auth[_0xe200('0x8')](),controller['show']);router['post']('/',auth[_0xe200('0x8')](),controller[_0xe200('0xc')]);router[_0xe200('0xd')]('/:id',auth['isAuthenticated'](),controller[_0xe200('0xe')]);router['delete'](_0xe200('0xf'),auth['isAuthenticated'](),controller[_0xe200('0x10')]);module[_0xe200('0x11')]=router;