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 _0x81ec=['get','/describe','/:id','post','create','put','update','delete','multer','connect-timeout','express','Router','../../components/interaction/service','./squareReport.controller','isAuthenticated','index'];(function(_0x1dc24d,_0x541fa4){var _0x5d7fb2=function(_0x7ccd26){while(--_0x7ccd26){_0x1dc24d['push'](_0x1dc24d['shift']());}};_0x5d7fb2(++_0x541fa4);}(_0x81ec,0xc8));var _0xc81e=function(_0x502a8e,_0x238224){_0x502a8e=_0x502a8e-0x0;var _0x5c7054=_0x81ec[_0x502a8e];return _0x5c7054;};'use strict';var multer=require(_0xc81e('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xc81e('0x1'));var express=require(_0xc81e('0x2'));var router=express[_0xc81e('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xc81e('0x4'));var config=require('../../config/environment');var controller=require(_0xc81e('0x5'));router['get']('/',auth[_0xc81e('0x6')](),controller[_0xc81e('0x7')]);router[_0xc81e('0x8')](_0xc81e('0x9'),auth[_0xc81e('0x6')](),controller['describe']);router[_0xc81e('0x8')](_0xc81e('0xa'),auth['isAuthenticated'](),controller['show']);router[_0xc81e('0xb')]('/',auth['isAuthenticated'](),controller[_0xc81e('0xc')]);router[_0xc81e('0xd')](_0xc81e('0xa'),auth[_0xc81e('0x6')](),controller[_0xc81e('0xe')]);router[_0xc81e('0xf')](_0xc81e('0xa'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;