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 _0x1b19=['get','/:id/test','post','create','delete','destroy','exports','multer','path','connect-timeout','fs-extra','../../components/auth/service','../../config/environment','./squareOdbc.controller','/:id','isAuthenticated','show'];(function(_0x58d5dc,_0x473ecc){var _0x4aa83e=function(_0x3636fa){while(--_0x3636fa){_0x58d5dc['push'](_0x58d5dc['shift']());}};_0x4aa83e(++_0x473ecc);}(_0x1b19,0xb1));var _0x91b1=function(_0x29f175,_0xb895b8){_0x29f175=_0x29f175-0x0;var _0x2deaa7=_0x1b19[_0x29f175];return _0x2deaa7;};'use strict';var multer=require(_0x91b1('0x0'));var util=require('util');var path=require(_0x91b1('0x1'));var timeout=require(_0x91b1('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x91b1('0x3'));var auth=require(_0x91b1('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x91b1('0x5'));var controller=require(_0x91b1('0x6'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x91b1('0x7'),auth[_0x91b1('0x8')](),controller[_0x91b1('0x9')]);router[_0x91b1('0xa')](_0x91b1('0xb'),auth['isAuthenticated'](),timeout('15s'),controller['test']);router[_0x91b1('0xc')]('/',auth[_0x91b1('0x8')](),controller[_0x91b1('0xd')]);router['put'](_0x91b1('0x7'),auth['isAuthenticated'](),controller['update']);router[_0x91b1('0xe')]('/:id',auth[_0x91b1('0x8')](),controller[_0x91b1('0xf')]);module[_0x91b1('0x10')]=router;