ea76929f11507ec145e0aff3166ae4acdce3f86b
[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 _0xfa23=['destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./squareReportDetail.controller','get','isAuthenticated','index','/describe','describe','show','post','create','/:id','update'];(function(_0x3430aa,_0x57cd92){var _0x2ac5c=function(_0x3068dd){while(--_0x3068dd){_0x3430aa['push'](_0x3430aa['shift']());}};_0x2ac5c(++_0x57cd92);}(_0xfa23,0x128));var _0x3fa2=function(_0xb8135c,_0x46c002){_0xb8135c=_0xb8135c-0x0;var _0x4e54e5=_0xfa23[_0xb8135c];return _0x4e54e5;};'use strict';var multer=require(_0x3fa2('0x0'));var util=require(_0x3fa2('0x1'));var path=require(_0x3fa2('0x2'));var timeout=require(_0x3fa2('0x3'));var express=require('express');var router=express[_0x3fa2('0x4')]();var fs_extra=require(_0x3fa2('0x5'));var auth=require(_0x3fa2('0x6'));var interaction=require(_0x3fa2('0x7'));var config=require('../../config/environment');var controller=require(_0x3fa2('0x8'));router[_0x3fa2('0x9')]('/',auth[_0x3fa2('0xa')](),controller[_0x3fa2('0xb')]);router[_0x3fa2('0x9')](_0x3fa2('0xc'),auth[_0x3fa2('0xa')](),controller[_0x3fa2('0xd')]);router[_0x3fa2('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x3fa2('0xe')]);router[_0x3fa2('0xf')]('/',auth[_0x3fa2('0xa')](),controller[_0x3fa2('0x10')]);router['put'](_0x3fa2('0x11'),auth[_0x3fa2('0xa')](),controller[_0x3fa2('0x12')]);router['delete'](_0x3fa2('0x11'),auth['isAuthenticated'](),controller[_0x3fa2('0x13')]);module[_0x3fa2('0x14')]=router;