Built motion from commit 616d3211.|2.6.4
[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 _0x4c87=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReportDetail.controller','index','/describe','isAuthenticated','describe','get','/:id','show','create','update','destroy','exports','multer','util','connect-timeout'];(function(_0x934425,_0x5af72f){var _0x31d596=function(_0x219869){while(--_0x219869){_0x934425['push'](_0x934425['shift']());}};_0x31d596(++_0x5af72f);}(_0x4c87,0x1dd));var _0x74c8=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x4c87[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0x74c8('0x0'));var util=require(_0x74c8('0x1'));var path=require('path');var timeout=require(_0x74c8('0x2'));var express=require(_0x74c8('0x3'));var router=express[_0x74c8('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x74c8('0x5'));var interaction=require(_0x74c8('0x6'));var config=require(_0x74c8('0x7'));var controller=require(_0x74c8('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x74c8('0x9')]);router['get'](_0x74c8('0xa'),auth[_0x74c8('0xb')](),controller[_0x74c8('0xc')]);router[_0x74c8('0xd')](_0x74c8('0xe'),auth['isAuthenticated'](),controller[_0x74c8('0xf')]);router['post']('/',auth[_0x74c8('0xb')](),controller[_0x74c8('0x10')]);router['put'](_0x74c8('0xe'),auth[_0x74c8('0xb')](),controller[_0x74c8('0x11')]);router['delete'](_0x74c8('0xe'),auth[_0x74c8('0xb')](),controller[_0x74c8('0x12')]);module[_0x74c8('0x13')]=router;