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 _0xa782=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareOdbc.controller','get','isAuthenticated','index','/:id','show','test','post','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x5b78e8,_0x55096b){var _0xf2c321=function(_0x4e0cff){while(--_0x4e0cff){_0x5b78e8['push'](_0x5b78e8['shift']());}};_0xf2c321(++_0x55096b);}(_0xa782,0x192));var _0x2a78=function(_0x46698a,_0x8de1e4){_0x46698a=_0x46698a-0x0;var _0x356db0=_0xa782[_0x46698a];return _0x356db0;};'use strict';var multer=require(_0x2a78('0x0'));var util=require(_0x2a78('0x1'));var path=require(_0x2a78('0x2'));var timeout=require(_0x2a78('0x3'));var express=require(_0x2a78('0x4'));var router=express[_0x2a78('0x5')]();var fs_extra=require(_0x2a78('0x6'));var auth=require(_0x2a78('0x7'));var interaction=require(_0x2a78('0x8'));var config=require(_0x2a78('0x9'));var controller=require(_0x2a78('0xa'));router[_0x2a78('0xb')]('/',auth[_0x2a78('0xc')](),controller[_0x2a78('0xd')]);router[_0x2a78('0xb')](_0x2a78('0xe'),auth['isAuthenticated'](),controller[_0x2a78('0xf')]);router[_0x2a78('0xb')]('/:id/test',auth[_0x2a78('0xc')](),timeout('15s'),controller[_0x2a78('0x10')]);router[_0x2a78('0x11')]('/',auth[_0x2a78('0xc')](),controller[_0x2a78('0x12')]);router[_0x2a78('0x13')](_0x2a78('0xe'),auth['isAuthenticated'](),controller[_0x2a78('0x14')]);router[_0x2a78('0x15')](_0x2a78('0xe'),auth[_0x2a78('0xc')](),controller[_0x2a78('0x16')]);module[_0x2a78('0x17')]=router;