f9303cd773ea1f4106276df7d08d44243c275b69
[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 _0xaa3f=['/:id','update','delete','destroy','exports','multer','util','path','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReportDetail.controller','isAuthenticated','get','describe','show','post'];(function(_0x57d826,_0x755096){var _0x57bc62=function(_0x3c2ad7){while(--_0x3c2ad7){_0x57d826['push'](_0x57d826['shift']());}};_0x57bc62(++_0x755096);}(_0xaa3f,0xdd));var _0xfaa3=function(_0x28c3ba,_0xe1ea2d){_0x28c3ba=_0x28c3ba-0x0;var _0x10b950=_0xaa3f[_0x28c3ba];return _0x10b950;};'use strict';var multer=require(_0xfaa3('0x0'));var util=require(_0xfaa3('0x1'));var path=require(_0xfaa3('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0xfaa3('0x3'));var auth=require(_0xfaa3('0x4'));var interaction=require(_0xfaa3('0x5'));var config=require(_0xfaa3('0x6'));var controller=require(_0xfaa3('0x7'));router['get']('/',auth[_0xfaa3('0x8')](),controller['index']);router[_0xfaa3('0x9')]('/describe',auth[_0xfaa3('0x8')](),controller[_0xfaa3('0xa')]);router[_0xfaa3('0x9')]('/:id',auth[_0xfaa3('0x8')](),controller[_0xfaa3('0xb')]);router[_0xfaa3('0xc')]('/',auth[_0xfaa3('0x8')](),controller['create']);router['put'](_0xfaa3('0xd'),auth[_0xfaa3('0x8')](),controller[_0xfaa3('0xe')]);router[_0xfaa3('0xf')]('/:id',auth['isAuthenticated'](),controller[_0xfaa3('0x10')]);module[_0xfaa3('0x11')]=router;