f5b4e3c97bf07c10c2e4ddbd8071ecd8850fc642
[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 _0xc2ed=['get','isAuthenticated','index','/describe','describe','show','create','put','update','delete','/:id','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','./squareReport.controller'];(function(_0x4cc024,_0x475403){var _0x44feea=function(_0x2b9f4d){while(--_0x2b9f4d){_0x4cc024['push'](_0x4cc024['shift']());}};_0x44feea(++_0x475403);}(_0xc2ed,0x187));var _0xdc2e=function(_0x1c546c,_0x5c57cb){_0x1c546c=_0x1c546c-0x0;var _0x2cc384=_0xc2ed[_0x1c546c];return _0x2cc384;};'use strict';var multer=require(_0xdc2e('0x0'));var util=require(_0xdc2e('0x1'));var path=require(_0xdc2e('0x2'));var timeout=require(_0xdc2e('0x3'));var express=require(_0xdc2e('0x4'));var router=express[_0xdc2e('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xdc2e('0x6'));var config=require('../../config/environment');var controller=require(_0xdc2e('0x7'));router[_0xdc2e('0x8')]('/',auth[_0xdc2e('0x9')](),controller[_0xdc2e('0xa')]);router[_0xdc2e('0x8')](_0xdc2e('0xb'),auth[_0xdc2e('0x9')](),controller[_0xdc2e('0xc')]);router[_0xdc2e('0x8')]('/:id',auth[_0xdc2e('0x9')](),controller[_0xdc2e('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0xdc2e('0xe')]);router[_0xdc2e('0xf')]('/:id',auth['isAuthenticated'](),controller[_0xdc2e('0x10')]);router[_0xdc2e('0x11')](_0xdc2e('0x12'),auth[_0xdc2e('0x9')](),controller[_0xdc2e('0x13')]);module[_0xdc2e('0x14')]=router;