356ca3a1640c830d3d8aacbafbced16aee83bb42
[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 _0x9e7f=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReportDetail.controller','get','/describe','isAuthenticated','describe','post','create','/:id','update','exports','multer','util','path'];(function(_0x18a0d3,_0x485e6a){var _0x5688e7=function(_0x437e8b){while(--_0x437e8b){_0x18a0d3['push'](_0x18a0d3['shift']());}};_0x5688e7(++_0x485e6a);}(_0x9e7f,0x166));var _0xf9e7=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x9e7f[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0xf9e7('0x0'));var util=require(_0xf9e7('0x1'));var path=require(_0xf9e7('0x2'));var timeout=require(_0xf9e7('0x3'));var express=require(_0xf9e7('0x4'));var router=express[_0xf9e7('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xf9e7('0x6'));var interaction=require(_0xf9e7('0x7'));var config=require(_0xf9e7('0x8'));var controller=require(_0xf9e7('0x9'));router[_0xf9e7('0xa')]('/',auth['isAuthenticated'](),controller['index']);router[_0xf9e7('0xa')](_0xf9e7('0xb'),auth[_0xf9e7('0xc')](),controller[_0xf9e7('0xd')]);router['get']('/:id',auth[_0xf9e7('0xc')](),controller['show']);router[_0xf9e7('0xe')]('/',auth['isAuthenticated'](),controller[_0xf9e7('0xf')]);router['put'](_0xf9e7('0x10'),auth[_0xf9e7('0xc')](),controller[_0xf9e7('0x11')]);router['delete'](_0xf9e7('0x10'),auth['isAuthenticated'](),controller['destroy']);module[_0xf9e7('0x12')]=router;