8fd94b4c2ef94202716404371e1706351bf6c619
[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 _0x988c=['isAuthenticated','/describe','/:id','show','post','create','put','update','destroy','multer','express','Router','fs-extra','./squareReport.controller','get'];(function(_0x173a01,_0x5cd741){var _0x1f7968=function(_0x68dd81){while(--_0x68dd81){_0x173a01['push'](_0x173a01['shift']());}};_0x1f7968(++_0x5cd741);}(_0x988c,0x19e));var _0xc988=function(_0x258c17,_0x191833){_0x258c17=_0x258c17-0x0;var _0x17929b=_0x988c[_0x258c17];return _0x17929b;};'use strict';var multer=require(_0xc988('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xc988('0x1'));var router=express[_0xc988('0x2')]();var fs_extra=require(_0xc988('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xc988('0x4'));router[_0xc988('0x5')]('/',auth[_0xc988('0x6')](),controller['index']);router[_0xc988('0x5')](_0xc988('0x7'),auth['isAuthenticated'](),controller['describe']);router[_0xc988('0x5')](_0xc988('0x8'),auth[_0xc988('0x6')](),controller[_0xc988('0x9')]);router[_0xc988('0xa')]('/',auth['isAuthenticated'](),controller[_0xc988('0xb')]);router[_0xc988('0xc')](_0xc988('0x8'),auth[_0xc988('0x6')](),controller[_0xc988('0xd')]);router['delete'](_0xc988('0x8'),auth[_0xc988('0x6')](),controller[_0xc988('0xe')]);module['exports']=router;