e40ae0221a340a1401ffbdda84bab9398e68e811
[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 _0xabc3=['util','path','connect-timeout','Router','fs-extra','../../components/auth/service','./squareReportDetail.controller','isAuthenticated','index','get','/describe','describe','/:id','post','create','delete','destroy','exports','multer'];(function(_0x4fd2ca,_0x488418){var _0x9e01c5=function(_0x2bcb2f){while(--_0x2bcb2f){_0x4fd2ca['push'](_0x4fd2ca['shift']());}};_0x9e01c5(++_0x488418);}(_0xabc3,0x1a1));var _0x3abc=function(_0x52add8,_0xddad4d){_0x52add8=_0x52add8-0x0;var _0x30420d=_0xabc3[_0x52add8];return _0x30420d;};'use strict';var multer=require(_0x3abc('0x0'));var util=require(_0x3abc('0x1'));var path=require(_0x3abc('0x2'));var timeout=require(_0x3abc('0x3'));var express=require('express');var router=express[_0x3abc('0x4')]();var fs_extra=require(_0x3abc('0x5'));var auth=require(_0x3abc('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x3abc('0x7'));router['get']('/',auth[_0x3abc('0x8')](),controller[_0x3abc('0x9')]);router[_0x3abc('0xa')](_0x3abc('0xb'),auth[_0x3abc('0x8')](),controller[_0x3abc('0xc')]);router[_0x3abc('0xa')](_0x3abc('0xd'),auth[_0x3abc('0x8')](),controller['show']);router[_0x3abc('0xe')]('/',auth[_0x3abc('0x8')](),controller[_0x3abc('0xf')]);router['put'](_0x3abc('0xd'),auth['isAuthenticated'](),controller['update']);router[_0x3abc('0x10')](_0x3abc('0xd'),auth[_0x3abc('0x8')](),controller[_0x3abc('0x11')]);module[_0x3abc('0x12')]=router;