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