Built motion from commit (unavailable).|2.5.6
[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 _0x17fa=['/describe','/:id','create','update','destroy','exports','multer','util','path','connect-timeout','express','../../config/environment','get','isAuthenticated','index'];(function(_0x324cd4,_0x3e033c){var _0x2042e7=function(_0x2b3edc){while(--_0x2b3edc){_0x324cd4['push'](_0x324cd4['shift']());}};_0x2042e7(++_0x3e033c);}(_0x17fa,0x18c));var _0xa17f=function(_0x43b068,_0x163e00){_0x43b068=_0x43b068-0x0;var _0x4559d4=_0x17fa[_0x43b068];return _0x4559d4;};'use strict';var multer=require(_0xa17f('0x0'));var util=require(_0xa17f('0x1'));var path=require(_0xa17f('0x2'));var timeout=require(_0xa17f('0x3'));var express=require(_0xa17f('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xa17f('0x5'));var controller=require('./squareReport.controller');router[_0xa17f('0x6')]('/',auth[_0xa17f('0x7')](),controller[_0xa17f('0x8')]);router[_0xa17f('0x6')](_0xa17f('0x9'),auth[_0xa17f('0x7')](),controller['describe']);router['get'](_0xa17f('0xa'),auth[_0xa17f('0x7')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xa17f('0xb')]);router['put']('/:id',auth[_0xa17f('0x7')](),controller[_0xa17f('0xc')]);router['delete'](_0xa17f('0xa'),auth['isAuthenticated'](),controller[_0xa17f('0xd')]);module[_0xa17f('0xe')]=router;