a731bb9ab348e06f6b1c64df765b66e39b5dd344
[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 _0x356f=['/describe','describe','/:id','post','put','update','delete','exports','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./squareReport.controller','get','isAuthenticated','index'];(function(_0x301dab,_0x38050a){var _0x2500a2=function(_0x4d3dff){while(--_0x4d3dff){_0x301dab['push'](_0x301dab['shift']());}};_0x2500a2(++_0x38050a);}(_0x356f,0x1d3));var _0xf356=function(_0x2426f8,_0x54b6da){_0x2426f8=_0x2426f8-0x0;var _0x5e45f4=_0x356f[_0x2426f8];return _0x5e45f4;};'use strict';var multer=require('multer');var util=require(_0xf356('0x0'));var path=require('path');var timeout=require(_0xf356('0x1'));var express=require(_0xf356('0x2'));var router=express['Router']();var auth=require(_0xf356('0x3'));var interaction=require(_0xf356('0x4'));var config=require('../../config/environment');var controller=require(_0xf356('0x5'));router[_0xf356('0x6')]('/',auth[_0xf356('0x7')](),controller[_0xf356('0x8')]);router[_0xf356('0x6')](_0xf356('0x9'),auth[_0xf356('0x7')](),controller[_0xf356('0xa')]);router[_0xf356('0x6')](_0xf356('0xb'),auth[_0xf356('0x7')](),controller['show']);router[_0xf356('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0xf356('0xd')]('/:id',auth[_0xf356('0x7')](),controller[_0xf356('0xe')]);router[_0xf356('0xf')](_0xf356('0xb'),auth[_0xf356('0x7')](),controller['destroy']);module[_0xf356('0x10')]=router;