Built motion from commit da617fac.|2.6.6
[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 _0x8cf1=['./squareReportDetail.controller','get','index','/describe','isAuthenticated','describe','show','put','update','delete','/:id','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x4a328d,_0x4a5df0){var _0x277eb5=function(_0x76d28b){while(--_0x76d28b){_0x4a328d['push'](_0x4a328d['shift']());}};_0x277eb5(++_0x4a5df0);}(_0x8cf1,0x147));var _0x18cf=function(_0x1edca6,_0x37dced){_0x1edca6=_0x1edca6-0x0;var _0x4fb753=_0x8cf1[_0x1edca6];return _0x4fb753;};'use strict';var multer=require(_0x18cf('0x0'));var util=require(_0x18cf('0x1'));var path=require(_0x18cf('0x2'));var timeout=require(_0x18cf('0x3'));var express=require(_0x18cf('0x4'));var router=express[_0x18cf('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x18cf('0x6'));var interaction=require(_0x18cf('0x7'));var config=require(_0x18cf('0x8'));var controller=require(_0x18cf('0x9'));router[_0x18cf('0xa')]('/',auth['isAuthenticated'](),controller[_0x18cf('0xb')]);router['get'](_0x18cf('0xc'),auth[_0x18cf('0xd')](),controller[_0x18cf('0xe')]);router[_0x18cf('0xa')]('/:id',auth[_0x18cf('0xd')](),controller[_0x18cf('0xf')]);router['post']('/',auth[_0x18cf('0xd')](),controller['create']);router[_0x18cf('0x10')]('/:id',auth['isAuthenticated'](),controller[_0x18cf('0x11')]);router[_0x18cf('0x12')](_0x18cf('0x13'),auth[_0x18cf('0xd')](),controller['destroy']);module[_0x18cf('0x14')]=router;