Built motion from commit (unavailable).|2.5.2
[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 _0x89c6=['index','/describe','/:id','create','update','destroy','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./squareReport.controller','get','isAuthenticated'];(function(_0x1bd7b7,_0x18e7c4){var _0x46a408=function(_0x447563){while(--_0x447563){_0x1bd7b7['push'](_0x1bd7b7['shift']());}};_0x46a408(++_0x18e7c4);}(_0x89c6,0x1b9));var _0x689c=function(_0x956364,_0x536f20){_0x956364=_0x956364-0x0;var _0x287507=_0x89c6[_0x956364];return _0x287507;};'use strict';var multer=require('multer');var util=require(_0x689c('0x0'));var path=require(_0x689c('0x1'));var timeout=require(_0x689c('0x2'));var express=require(_0x689c('0x3'));var router=express['Router']();var auth=require(_0x689c('0x4'));var interaction=require(_0x689c('0x5'));var config=require('../../config/environment');var controller=require(_0x689c('0x6'));router[_0x689c('0x7')]('/',auth[_0x689c('0x8')](),controller[_0x689c('0x9')]);router[_0x689c('0x7')](_0x689c('0xa'),auth[_0x689c('0x8')](),controller['describe']);router[_0x689c('0x7')](_0x689c('0xb'),auth[_0x689c('0x8')](),controller['show']);router['post']('/',auth[_0x689c('0x8')](),controller[_0x689c('0xc')]);router['put']('/:id',auth[_0x689c('0x8')](),controller[_0x689c('0xd')]);router['delete'](_0x689c('0xb'),auth['isAuthenticated'](),controller[_0x689c('0xe')]);module['exports']=router;