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