6f562b3263047a4411957d782897d3f9a97482bd
[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 _0xc32a=['describe','/:id','show','post','create','update','destroy','exports','multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReportDetail.controller','get','isAuthenticated','index','/describe'];(function(_0x3fd143,_0x5c0559){var _0x42cef0=function(_0x6d6355){while(--_0x6d6355){_0x3fd143['push'](_0x3fd143['shift']());}};_0x42cef0(++_0x5c0559);}(_0xc32a,0x8d));var _0xac32=function(_0x9fd887,_0x47f76c){_0x9fd887=_0x9fd887-0x0;var _0x1a54ab=_0xc32a[_0x9fd887];return _0x1a54ab;};'use strict';var multer=require(_0xac32('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xac32('0x1'));var express=require('express');var router=express[_0xac32('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0xac32('0x3'));var interaction=require(_0xac32('0x4'));var config=require(_0xac32('0x5'));var controller=require(_0xac32('0x6'));router[_0xac32('0x7')]('/',auth[_0xac32('0x8')](),controller[_0xac32('0x9')]);router[_0xac32('0x7')](_0xac32('0xa'),auth['isAuthenticated'](),controller[_0xac32('0xb')]);router[_0xac32('0x7')](_0xac32('0xc'),auth[_0xac32('0x8')](),controller[_0xac32('0xd')]);router[_0xac32('0xe')]('/',auth[_0xac32('0x8')](),controller[_0xac32('0xf')]);router['put']('/:id',auth[_0xac32('0x8')](),controller[_0xac32('0x10')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xac32('0x11')]);module[_0xac32('0x12')]=router;