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