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