73fd10bfda7d845ddb654c740851f1a4acb4def1
[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 _0x0598=['show','post','create','/:id','update','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReport.controller','get','isAuthenticated','/describe'];(function(_0x130523,_0x299f4f){var _0x319a73=function(_0x53bc5f){while(--_0x53bc5f){_0x130523['push'](_0x130523['shift']());}};_0x319a73(++_0x299f4f);}(_0x0598,0x16f));var _0x8059=function(_0x2e365c,_0x2d1aee){_0x2e365c=_0x2e365c-0x0;var _0x510c7e=_0x0598[_0x2e365c];return _0x510c7e;};'use strict';var multer=require(_0x8059('0x0'));var util=require(_0x8059('0x1'));var path=require(_0x8059('0x2'));var timeout=require(_0x8059('0x3'));var express=require(_0x8059('0x4'));var router=express[_0x8059('0x5')]();var auth=require(_0x8059('0x6'));var interaction=require(_0x8059('0x7'));var config=require(_0x8059('0x8'));var controller=require(_0x8059('0x9'));router[_0x8059('0xa')]('/',auth[_0x8059('0xb')](),controller['index']);router[_0x8059('0xa')](_0x8059('0xc'),auth[_0x8059('0xb')](),controller['describe']);router[_0x8059('0xa')]('/:id',auth[_0x8059('0xb')](),controller[_0x8059('0xd')]);router[_0x8059('0xe')]('/',auth[_0x8059('0xb')](),controller[_0x8059('0xf')]);router['put'](_0x8059('0x10'),auth[_0x8059('0xb')](),controller[_0x8059('0x11')]);router['delete'](_0x8059('0x10'),auth[_0x8059('0xb')](),controller[_0x8059('0x12')]);module[_0x8059('0x13')]=router;