b015ceb08e180e367e4f1be8aea4664c604543ca
[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 _0x4dc9=['update','delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReportDetail.controller','get','index','/describe','isAuthenticated','describe','/:id','show','put'];(function(_0x59fffa,_0x5a61db){var _0x281d4e=function(_0x5327ca){while(--_0x5327ca){_0x59fffa['push'](_0x59fffa['shift']());}};_0x281d4e(++_0x5a61db);}(_0x4dc9,0x1d1));var _0x94dc=function(_0x54b2fa,_0x5155d0){_0x54b2fa=_0x54b2fa-0x0;var _0x2c6c65=_0x4dc9[_0x54b2fa];return _0x2c6c65;};'use strict';var multer=require(_0x94dc('0x0'));var util=require(_0x94dc('0x1'));var path=require(_0x94dc('0x2'));var timeout=require(_0x94dc('0x3'));var express=require(_0x94dc('0x4'));var router=express[_0x94dc('0x5')]();var fs_extra=require(_0x94dc('0x6'));var auth=require(_0x94dc('0x7'));var interaction=require(_0x94dc('0x8'));var config=require(_0x94dc('0x9'));var controller=require(_0x94dc('0xa'));router[_0x94dc('0xb')]('/',auth['isAuthenticated'](),controller[_0x94dc('0xc')]);router[_0x94dc('0xb')](_0x94dc('0xd'),auth[_0x94dc('0xe')](),controller[_0x94dc('0xf')]);router[_0x94dc('0xb')](_0x94dc('0x10'),auth[_0x94dc('0xe')](),controller[_0x94dc('0x11')]);router['post']('/',auth[_0x94dc('0xe')](),controller['create']);router[_0x94dc('0x12')](_0x94dc('0x10'),auth['isAuthenticated'](),controller[_0x94dc('0x13')]);router[_0x94dc('0x14')](_0x94dc('0x10'),auth[_0x94dc('0xe')](),controller['destroy']);module[_0x94dc('0x15')]=router;