d912140994c5728ba8a22d50eaf3b31b003862d0
[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 _0x75f3=['delete','exports','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','./squareReportDetail.controller','get','isAuthenticated','/describe','describe','/:id','show','post'];(function(_0x218f38,_0xa91554){var _0x3dff4e=function(_0x5b6980){while(--_0x5b6980){_0x218f38['push'](_0x218f38['shift']());}};_0x3dff4e(++_0xa91554);}(_0x75f3,0x189));var _0x375f=function(_0x14b890,_0x54f95f){_0x14b890=_0x14b890-0x0;var _0x50b17c=_0x75f3[_0x14b890];return _0x50b17c;};'use strict';var multer=require(_0x375f('0x0'));var util=require(_0x375f('0x1'));var path=require(_0x375f('0x2'));var timeout=require('connect-timeout');var express=require(_0x375f('0x3'));var router=express[_0x375f('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x375f('0x5'));var config=require(_0x375f('0x6'));var controller=require(_0x375f('0x7'));router[_0x375f('0x8')]('/',auth[_0x375f('0x9')](),controller['index']);router[_0x375f('0x8')](_0x375f('0xa'),auth[_0x375f('0x9')](),controller[_0x375f('0xb')]);router[_0x375f('0x8')](_0x375f('0xc'),auth[_0x375f('0x9')](),controller[_0x375f('0xd')]);router[_0x375f('0xe')]('/',auth[_0x375f('0x9')](),controller['create']);router['put'](_0x375f('0xc'),auth[_0x375f('0x9')](),controller['update']);router[_0x375f('0xf')]('/:id',auth[_0x375f('0x9')](),controller['destroy']);module[_0x375f('0x10')]=router;