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 _0xb2e3=['express','Router','../../components/auth/service','../../config/environment','./squareOdbc.controller','get','isAuthenticated','index','show','/:id/test','15s','test','create','put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0x43283f,_0x4dbd1e){var _0x387239=function(_0x1103ce){while(--_0x1103ce){_0x43283f['push'](_0x43283f['shift']());}};_0x387239(++_0x4dbd1e);}(_0xb2e3,0xf9));var _0x3b2e=function(_0x23e7c1,_0x35110c){_0x23e7c1=_0x23e7c1-0x0;var _0x1add43=_0xb2e3[_0x23e7c1];return _0x1add43;};'use strict';var multer=require(_0x3b2e('0x0'));var util=require(_0x3b2e('0x1'));var path=require(_0x3b2e('0x2'));var timeout=require(_0x3b2e('0x3'));var express=require(_0x3b2e('0x4'));var router=express[_0x3b2e('0x5')]();var auth=require(_0x3b2e('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x3b2e('0x7'));var controller=require(_0x3b2e('0x8'));router[_0x3b2e('0x9')]('/',auth[_0x3b2e('0xa')](),controller[_0x3b2e('0xb')]);router[_0x3b2e('0x9')]('/:id',auth[_0x3b2e('0xa')](),controller[_0x3b2e('0xc')]);router[_0x3b2e('0x9')](_0x3b2e('0xd'),auth[_0x3b2e('0xa')](),timeout(_0x3b2e('0xe')),controller[_0x3b2e('0xf')]);router['post']('/',auth[_0x3b2e('0xa')](),controller[_0x3b2e('0x10')]);router[_0x3b2e('0x11')](_0x3b2e('0x12'),auth[_0x3b2e('0xa')](),controller[_0x3b2e('0x13')]);router[_0x3b2e('0x14')](_0x3b2e('0x12'),auth['isAuthenticated'](),controller[_0x3b2e('0x15')]);module[_0x3b2e('0x16')]=router;