Built motion from commit 25580385.|2.6.2
[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 _0xe186=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReportDetail.controller','get','isAuthenticated','index','/describe','/:id','show','create','update','util','path','connect-timeout'];(function(_0x4e8cb9,_0x30bfea){var _0x2b0b72=function(_0x1d8151){while(--_0x1d8151){_0x4e8cb9['push'](_0x4e8cb9['shift']());}};_0x2b0b72(++_0x30bfea);}(_0xe186,0x12f));var _0x6e18=function(_0x1c72e8,_0x29a78d){_0x1c72e8=_0x1c72e8-0x0;var _0x48fb92=_0xe186[_0x1c72e8];return _0x48fb92;};'use strict';var multer=require('multer');var util=require(_0x6e18('0x0'));var path=require(_0x6e18('0x1'));var timeout=require(_0x6e18('0x2'));var express=require(_0x6e18('0x3'));var router=express[_0x6e18('0x4')]();var fs_extra=require(_0x6e18('0x5'));var auth=require(_0x6e18('0x6'));var interaction=require(_0x6e18('0x7'));var config=require(_0x6e18('0x8'));var controller=require(_0x6e18('0x9'));router[_0x6e18('0xa')]('/',auth[_0x6e18('0xb')](),controller[_0x6e18('0xc')]);router['get'](_0x6e18('0xd'),auth['isAuthenticated'](),controller['describe']);router[_0x6e18('0xa')](_0x6e18('0xe'),auth['isAuthenticated'](),controller[_0x6e18('0xf')]);router['post']('/',auth[_0x6e18('0xb')](),controller[_0x6e18('0x10')]);router['put'](_0x6e18('0xe'),auth['isAuthenticated'](),controller[_0x6e18('0x11')]);router['delete'](_0x6e18('0xe'),auth[_0x6e18('0xb')](),controller['destroy']);module['exports']=router;