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