87ad1f1c1ba09e3639afe9e8469e83a09787920d
[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 _0x22f4=['../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReport.controller','isAuthenticated','index','get','/describe','describe','/:id','show','post','create','put','delete','destroy','util','path','Router'];(function(_0x2715bc,_0x1c385e){var _0x5f2e79=function(_0x4761c8){while(--_0x4761c8){_0x2715bc['push'](_0x2715bc['shift']());}};_0x5f2e79(++_0x1c385e);}(_0x22f4,0x82));var _0x422f=function(_0x3c4f1f,_0x20d3ec){_0x3c4f1f=_0x3c4f1f-0x0;var _0x19cb69=_0x22f4[_0x3c4f1f];return _0x19cb69;};'use strict';var multer=require('multer');var util=require(_0x422f('0x0'));var path=require(_0x422f('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x422f('0x2')]();var auth=require(_0x422f('0x3'));var interaction=require(_0x422f('0x4'));var config=require(_0x422f('0x5'));var controller=require(_0x422f('0x6'));router['get']('/',auth[_0x422f('0x7')](),controller[_0x422f('0x8')]);router[_0x422f('0x9')](_0x422f('0xa'),auth['isAuthenticated'](),controller[_0x422f('0xb')]);router[_0x422f('0x9')](_0x422f('0xc'),auth[_0x422f('0x7')](),controller[_0x422f('0xd')]);router[_0x422f('0xe')]('/',auth[_0x422f('0x7')](),controller[_0x422f('0xf')]);router[_0x422f('0x10')]('/:id',auth[_0x422f('0x7')](),controller['update']);router[_0x422f('0x11')]('/:id',auth[_0x422f('0x7')](),controller[_0x422f('0x12')]);module['exports']=router;