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