Built motion from commit 9e1399f3.|2.5.37
[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 _0x6c64=['util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReportDetail.controller','isAuthenticated','index','get','describe','post','create','/:id','update','destroy','exports','multer'];(function(_0x460150,_0x232949){var _0x340677=function(_0x5b7e32){while(--_0x5b7e32){_0x460150['push'](_0x460150['shift']());}};_0x340677(++_0x232949);}(_0x6c64,0x1ed));var _0x46c6=function(_0x3d9b13,_0x59056f){_0x3d9b13=_0x3d9b13-0x0;var _0xebbf9f=_0x6c64[_0x3d9b13];return _0xebbf9f;};'use strict';var multer=require(_0x46c6('0x0'));var util=require(_0x46c6('0x1'));var path=require(_0x46c6('0x2'));var timeout=require('connect-timeout');var express=require(_0x46c6('0x3'));var router=express[_0x46c6('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x46c6('0x5'));var interaction=require(_0x46c6('0x6'));var config=require(_0x46c6('0x7'));var controller=require(_0x46c6('0x8'));router['get']('/',auth[_0x46c6('0x9')](),controller[_0x46c6('0xa')]);router[_0x46c6('0xb')]('/describe',auth[_0x46c6('0x9')](),controller[_0x46c6('0xc')]);router[_0x46c6('0xb')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x46c6('0xd')]('/',auth[_0x46c6('0x9')](),controller[_0x46c6('0xe')]);router['put'](_0x46c6('0xf'),auth[_0x46c6('0x9')](),controller[_0x46c6('0x10')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x46c6('0x11')]);module[_0x46c6('0x12')]=router;