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 _0x7383=['../../components/auth/service','../../components/interaction/service','./squareOdbc.controller','index','get','/:id','isAuthenticated','show','/:id/test','test','post','update','delete','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x2cfb2b,_0x30c0f1){var _0x403a5c=function(_0x23f384){while(--_0x23f384){_0x2cfb2b['push'](_0x2cfb2b['shift']());}};_0x403a5c(++_0x30c0f1);}(_0x7383,0x18a));var _0x3738=function(_0x30b2f5,_0x2c40d9){_0x30b2f5=_0x30b2f5-0x0;var _0x2daa2b=_0x7383[_0x30b2f5];return _0x2daa2b;};'use strict';var multer=require(_0x3738('0x0'));var util=require(_0x3738('0x1'));var path=require(_0x3738('0x2'));var timeout=require(_0x3738('0x3'));var express=require(_0x3738('0x4'));var router=express[_0x3738('0x5')]();var auth=require(_0x3738('0x6'));var interaction=require(_0x3738('0x7'));var config=require('../../config/environment');var controller=require(_0x3738('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x3738('0x9')]);router[_0x3738('0xa')](_0x3738('0xb'),auth[_0x3738('0xc')](),controller[_0x3738('0xd')]);router[_0x3738('0xa')](_0x3738('0xe'),auth[_0x3738('0xc')](),timeout('15s'),controller[_0x3738('0xf')]);router[_0x3738('0x10')]('/',auth[_0x3738('0xc')](),controller['create']);router['put'](_0x3738('0xb'),auth[_0x3738('0xc')](),controller[_0x3738('0x11')]);router[_0x3738('0x12')](_0x3738('0xb'),auth[_0x3738('0xc')](),controller['destroy']);module[_0x3738('0x13')]=router;