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 _0xe247=['/:id/test','15s','test','put','delete','destroy','exports','util','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','index','/:id','isAuthenticated'];(function(_0x4817f0,_0x3e1d51){var _0x53a11b=function(_0x2951fa){while(--_0x2951fa){_0x4817f0['push'](_0x4817f0['shift']());}};_0x53a11b(++_0x3e1d51);}(_0xe247,0x137));var _0x7e24=function(_0xae5177,_0x45532b){_0xae5177=_0xae5177-0x0;var _0xf5c632=_0xe247[_0xae5177];return _0xf5c632;};'use strict';var multer=require('multer');var util=require(_0x7e24('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x7e24('0x1')]();var fs_extra=require(_0x7e24('0x2'));var auth=require(_0x7e24('0x3'));var interaction=require(_0x7e24('0x4'));var config=require('../../config/environment');var controller=require('./squareOdbc.controller');router[_0x7e24('0x5')]('/',auth['isAuthenticated'](),controller[_0x7e24('0x6')]);router[_0x7e24('0x5')](_0x7e24('0x7'),auth[_0x7e24('0x8')](),controller['show']);router['get'](_0x7e24('0x9'),auth['isAuthenticated'](),timeout(_0x7e24('0xa')),controller[_0x7e24('0xb')]);router['post']('/',auth[_0x7e24('0x8')](),controller['create']);router[_0x7e24('0xc')]('/:id',auth[_0x7e24('0x8')](),controller['update']);router[_0x7e24('0xd')](_0x7e24('0x7'),auth[_0x7e24('0x8')](),controller[_0x7e24('0xe')]);module[_0x7e24('0xf')]=router;