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 _0xc423=['put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','create'];(function(_0x11659b,_0x4fc63b){var _0x13bf28=function(_0x149bca){while(--_0x149bca){_0x11659b['push'](_0x11659b['shift']());}};_0x13bf28(++_0x4fc63b);}(_0xc423,0x159));var _0x3c42=function(_0x178e48,_0x3c9509){_0x178e48=_0x178e48-0x0;var _0x440d7e=_0xc423[_0x178e48];return _0x440d7e;};'use strict';var multer=require(_0x3c42('0x0'));var util=require(_0x3c42('0x1'));var path=require(_0x3c42('0x2'));var timeout=require(_0x3c42('0x3'));var express=require(_0x3c42('0x4'));var router=express['Router']();var auth=require(_0x3c42('0x5'));var interaction=require(_0x3c42('0x6'));var config=require(_0x3c42('0x7'));var controller=require('./squareOdbc.controller');router[_0x3c42('0x8')]('/',auth[_0x3c42('0x9')](),controller[_0x3c42('0xa')]);router[_0x3c42('0x8')](_0x3c42('0xb'),auth[_0x3c42('0x9')](),controller[_0x3c42('0xc')]);router[_0x3c42('0x8')]('/:id/test',auth[_0x3c42('0x9')](),timeout('15s'),controller['test']);router[_0x3c42('0xd')]('/',auth[_0x3c42('0x9')](),controller[_0x3c42('0xe')]);router[_0x3c42('0xf')](_0x3c42('0xb'),auth[_0x3c42('0x9')](),controller[_0x3c42('0x10')]);router[_0x3c42('0x11')]('/:id',auth[_0x3c42('0x9')](),controller[_0x3c42('0x12')]);module[_0x3c42('0x13')]=router;