74224e497778f0c15a6101d57fefe9a8c88353a1
[motion2.git] / server / api / squareReport / 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 _0xb21d=['create','put','update','delete','destroy','exports','multer','util','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','/describe','isAuthenticated','describe','get','/:id','show','post'];(function(_0x506185,_0x241bf6){var _0x40c77c=function(_0x4e4c00){while(--_0x4e4c00){_0x506185['push'](_0x506185['shift']());}};_0x40c77c(++_0x241bf6);}(_0xb21d,0xc4));var _0xdb21=function(_0x2a81d4,_0x530982){_0x2a81d4=_0x2a81d4-0x0;var _0x2fc567=_0xb21d[_0x2a81d4];return _0x2fc567;};'use strict';var multer=require(_0xdb21('0x0'));var util=require(_0xdb21('0x1'));var path=require('path');var timeout=require(_0xdb21('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0xdb21('0x3'));var interaction=require(_0xdb21('0x4'));var config=require(_0xdb21('0x5'));var controller=require('./squareReport.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xdb21('0x6'),auth[_0xdb21('0x7')](),controller[_0xdb21('0x8')]);router[_0xdb21('0x9')](_0xdb21('0xa'),auth[_0xdb21('0x7')](),controller[_0xdb21('0xb')]);router[_0xdb21('0xc')]('/',auth[_0xdb21('0x7')](),controller[_0xdb21('0xd')]);router[_0xdb21('0xe')](_0xdb21('0xa'),auth[_0xdb21('0x7')](),controller[_0xdb21('0xf')]);router[_0xdb21('0x10')](_0xdb21('0xa'),auth[_0xdb21('0x7')](),controller[_0xdb21('0x11')]);module[_0xdb21('0x12')]=router;