Built motion from commit (unavailable).|2.5.14
[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 _0x3d9f=['post','put','update','delete','destroy','exports','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./squareReport.controller','isAuthenticated','index','get','/describe','describe','/:id'];(function(_0x403132,_0x302532){var _0x4a88ff=function(_0x29c1aa){while(--_0x29c1aa){_0x403132['push'](_0x403132['shift']());}};_0x4a88ff(++_0x302532);}(_0x3d9f,0x16e));var _0xf3d9=function(_0xbca1b1,_0x33f0ce){_0xbca1b1=_0xbca1b1-0x0;var _0x4e1686=_0x3d9f[_0xbca1b1];return _0x4e1686;};'use strict';var multer=require('multer');var util=require(_0xf3d9('0x0'));var path=require('path');var timeout=require(_0xf3d9('0x1'));var express=require(_0xf3d9('0x2'));var router=express['Router']();var auth=require(_0xf3d9('0x3'));var interaction=require(_0xf3d9('0x4'));var config=require('../../config/environment');var controller=require(_0xf3d9('0x5'));router['get']('/',auth[_0xf3d9('0x6')](),controller[_0xf3d9('0x7')]);router[_0xf3d9('0x8')](_0xf3d9('0x9'),auth['isAuthenticated'](),controller[_0xf3d9('0xa')]);router[_0xf3d9('0x8')](_0xf3d9('0xb'),auth[_0xf3d9('0x6')](),controller['show']);router[_0xf3d9('0xc')]('/',auth[_0xf3d9('0x6')](),controller['create']);router[_0xf3d9('0xd')](_0xf3d9('0xb'),auth[_0xf3d9('0x6')](),controller[_0xf3d9('0xe')]);router[_0xf3d9('0xf')]('/:id',auth[_0xf3d9('0x6')](),controller[_0xf3d9('0x10')]);module[_0xf3d9('0x11')]=router;