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 _0x5c15=['../../config/environment','./squareReport.controller','isAuthenticated','index','get','/describe','describe','post','create','delete','/:id','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service'];(function(_0x44cf10,_0x31eefb){var _0x17491f=function(_0x4e8898){while(--_0x4e8898){_0x44cf10['push'](_0x44cf10['shift']());}};_0x17491f(++_0x31eefb);}(_0x5c15,0x71));var _0x55c1=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x5c15[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x55c1('0x0'));var util=require(_0x55c1('0x1'));var path=require(_0x55c1('0x2'));var timeout=require(_0x55c1('0x3'));var express=require(_0x55c1('0x4'));var router=express['Router']();var auth=require(_0x55c1('0x5'));var interaction=require(_0x55c1('0x6'));var config=require(_0x55c1('0x7'));var controller=require(_0x55c1('0x8'));router['get']('/',auth[_0x55c1('0x9')](),controller[_0x55c1('0xa')]);router[_0x55c1('0xb')](_0x55c1('0xc'),auth['isAuthenticated'](),controller[_0x55c1('0xd')]);router[_0x55c1('0xb')]('/:id',auth[_0x55c1('0x9')](),controller['show']);router[_0x55c1('0xe')]('/',auth[_0x55c1('0x9')](),controller[_0x55c1('0xf')]);router['put']('/:id',auth[_0x55c1('0x9')](),controller['update']);router[_0x55c1('0x10')](_0x55c1('0x11'),auth[_0x55c1('0x9')](),controller[_0x55c1('0x12')]);module[_0x55c1('0x13')]=router;