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