31347d38da9409f15902353f431e04912860eced
[motion2.git] / server / api / squareReportDetail / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x6e0d=['./squareReportDetail.controller','get','isAuthenticated','index','/:id','post','create','put','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../config/environment'];(function(_0x382a60,_0x3953d4){var _0x4668c3=function(_0x3700c0){while(--_0x3700c0){_0x382a60['push'](_0x382a60['shift']());}};_0x4668c3(++_0x3953d4);}(_0x6e0d,0x1f0));var _0xd6e0=function(_0x28e8cd,_0x22d3d9){_0x28e8cd=_0x28e8cd-0x0;var _0x567493=_0x6e0d[_0x28e8cd];return _0x567493;};'use strict';var multer=require(_0xd6e0('0x0'));var util=require(_0xd6e0('0x1'));var path=require(_0xd6e0('0x2'));var timeout=require('connect-timeout');var express=require(_0xd6e0('0x3'));var router=express[_0xd6e0('0x4')]();var fs_extra=require(_0xd6e0('0x5'));var auth=require(_0xd6e0('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xd6e0('0x7'));var controller=require(_0xd6e0('0x8'));router[_0xd6e0('0x9')]('/',auth[_0xd6e0('0xa')](),controller[_0xd6e0('0xb')]);router[_0xd6e0('0x9')]('/describe',auth[_0xd6e0('0xa')](),controller['describe']);router[_0xd6e0('0x9')](_0xd6e0('0xc'),auth['isAuthenticated'](),controller['show']);router[_0xd6e0('0xd')]('/',auth[_0xd6e0('0xa')](),controller[_0xd6e0('0xe')]);router[_0xd6e0('0xf')]('/:id',auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth[_0xd6e0('0xa')](),controller[_0xd6e0('0x10')]);module[_0xd6e0('0x11')]=router;