6dc1795476fd9a6772121291989e181ec0386aad
[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 _0x0a14=['describe','show','post','create','/:id','update','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','get','isAuthenticated','index','/describe'];(function(_0x3ec1da,_0x1e36f5){var _0x472358=function(_0x1d41b1){while(--_0x1d41b1){_0x3ec1da['push'](_0x3ec1da['shift']());}};_0x472358(++_0x1e36f5);}(_0x0a14,0xe4));var _0x40a1=function(_0x5d447e,_0x2721c0){_0x5d447e=_0x5d447e-0x0;var _0x3ca362=_0x0a14[_0x5d447e];return _0x3ca362;};'use strict';var multer=require(_0x40a1('0x0'));var util=require(_0x40a1('0x1'));var path=require(_0x40a1('0x2'));var timeout=require(_0x40a1('0x3'));var express=require(_0x40a1('0x4'));var router=express[_0x40a1('0x5')]();var fs_extra=require(_0x40a1('0x6'));var auth=require(_0x40a1('0x7'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./squareReportDetail.controller');router[_0x40a1('0x8')]('/',auth[_0x40a1('0x9')](),controller[_0x40a1('0xa')]);router['get'](_0x40a1('0xb'),auth[_0x40a1('0x9')](),controller[_0x40a1('0xc')]);router[_0x40a1('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x40a1('0xd')]);router[_0x40a1('0xe')]('/',auth[_0x40a1('0x9')](),controller[_0x40a1('0xf')]);router['put'](_0x40a1('0x10'),auth[_0x40a1('0x9')](),controller[_0x40a1('0x11')]);router[_0x40a1('0x12')](_0x40a1('0x10'),auth[_0x40a1('0x9')](),controller[_0x40a1('0x13')]);module['exports']=router;