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 _0x5e60=['create','put','update','destroy','exports','multer','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReportDetail.controller','get','isAuthenticated','index','/describe','/:id','show'];(function(_0xd67723,_0x1e576f){var _0x53b62b=function(_0x2460a3){while(--_0x2460a3){_0xd67723['push'](_0xd67723['shift']());}};_0x53b62b(++_0x1e576f);}(_0x5e60,0x77));var _0x05e6=function(_0x365416,_0x3d8b00){_0x365416=_0x365416-0x0;var _0x5dcaa7=_0x5e60[_0x365416];return _0x5dcaa7;};'use strict';var multer=require(_0x05e6('0x0'));var util=require(_0x05e6('0x1'));var path=require(_0x05e6('0x2'));var timeout=require('connect-timeout');var express=require(_0x05e6('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x05e6('0x4'));var interaction=require(_0x05e6('0x5'));var config=require(_0x05e6('0x6'));var controller=require(_0x05e6('0x7'));router[_0x05e6('0x8')]('/',auth[_0x05e6('0x9')](),controller[_0x05e6('0xa')]);router[_0x05e6('0x8')](_0x05e6('0xb'),auth['isAuthenticated'](),controller['describe']);router['get'](_0x05e6('0xc'),auth[_0x05e6('0x9')](),controller[_0x05e6('0xd')]);router['post']('/',auth[_0x05e6('0x9')](),controller[_0x05e6('0xe')]);router[_0x05e6('0xf')](_0x05e6('0xc'),auth[_0x05e6('0x9')](),controller[_0x05e6('0x10')]);router['delete']('/:id',auth[_0x05e6('0x9')](),controller[_0x05e6('0x11')]);module[_0x05e6('0x12')]=router;