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