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