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 _0x6a03=['delete','destroy','multer','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./squareReport.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','create','put'];(function(_0x52db13,_0x5e59fe){var _0x5dc358=function(_0x1049ae){while(--_0x1049ae){_0x52db13['push'](_0x52db13['shift']());}};_0x5dc358(++_0x5e59fe);}(_0x6a03,0x1ca));var _0x36a0=function(_0x2735c6,_0x17445f){_0x2735c6=_0x2735c6-0x0;var _0x580a63=_0x6a03[_0x2735c6];return _0x580a63;};'use strict';var multer=require(_0x36a0('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x36a0('0x1'));var express=require(_0x36a0('0x2'));var router=express[_0x36a0('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x36a0('0x4'));var config=require(_0x36a0('0x5'));var controller=require(_0x36a0('0x6'));router[_0x36a0('0x7')]('/',auth[_0x36a0('0x8')](),controller[_0x36a0('0x9')]);router[_0x36a0('0x7')](_0x36a0('0xa'),auth['isAuthenticated'](),controller[_0x36a0('0xb')]);router['get'](_0x36a0('0xc'),auth[_0x36a0('0x8')](),controller[_0x36a0('0xd')]);router[_0x36a0('0xe')]('/',auth[_0x36a0('0x8')](),controller[_0x36a0('0xf')]);router[_0x36a0('0x10')](_0x36a0('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x36a0('0x11')](_0x36a0('0xc'),auth[_0x36a0('0x8')](),controller[_0x36a0('0x12')]);module['exports']=router;