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 _0xa2b2=['get','index','/describe','isAuthenticated','describe','/:id','show','post','create','put','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReport.controller'];(function(_0x31a42b,_0x12cf9e){var _0x3f1b04=function(_0x11c146){while(--_0x11c146){_0x31a42b['push'](_0x31a42b['shift']());}};_0x3f1b04(++_0x12cf9e);}(_0xa2b2,0x160));var _0x2a2b=function(_0x1c0d82,_0x100f2a){_0x1c0d82=_0x1c0d82-0x0;var _0x14b5bf=_0xa2b2[_0x1c0d82];return _0x14b5bf;};'use strict';var multer=require('multer');var util=require(_0x2a2b('0x0'));var path=require('path');var timeout=require(_0x2a2b('0x1'));var express=require(_0x2a2b('0x2'));var router=express[_0x2a2b('0x3')]();var auth=require(_0x2a2b('0x4'));var interaction=require(_0x2a2b('0x5'));var config=require(_0x2a2b('0x6'));var controller=require(_0x2a2b('0x7'));router[_0x2a2b('0x8')]('/',auth['isAuthenticated'](),controller[_0x2a2b('0x9')]);router[_0x2a2b('0x8')](_0x2a2b('0xa'),auth[_0x2a2b('0xb')](),controller[_0x2a2b('0xc')]);router[_0x2a2b('0x8')](_0x2a2b('0xd'),auth[_0x2a2b('0xb')](),controller[_0x2a2b('0xe')]);router[_0x2a2b('0xf')]('/',auth[_0x2a2b('0xb')](),controller[_0x2a2b('0x10')]);router[_0x2a2b('0x11')](_0x2a2b('0xd'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x2a2b('0xd'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;