821340d1a2997bec9c4d42908134a714206f114b
[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 _0x239b=['exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReport.controller','get','index','/describe','isAuthenticated','describe','show','post','create','put','/:id','delete'];(function(_0x237d06,_0x244bda){var _0x236b2d=function(_0x2c36ff){while(--_0x2c36ff){_0x237d06['push'](_0x237d06['shift']());}};_0x236b2d(++_0x244bda);}(_0x239b,0x151));var _0xb239=function(_0x1f1a4b,_0x5a08af){_0x1f1a4b=_0x1f1a4b-0x0;var _0x817ed2=_0x239b[_0x1f1a4b];return _0x817ed2;};'use strict';var multer=require(_0xb239('0x0'));var util=require(_0xb239('0x1'));var path=require(_0xb239('0x2'));var timeout=require('connect-timeout');var express=require(_0xb239('0x3'));var router=express[_0xb239('0x4')]();var auth=require(_0xb239('0x5'));var interaction=require(_0xb239('0x6'));var config=require(_0xb239('0x7'));var controller=require(_0xb239('0x8'));router[_0xb239('0x9')]('/',auth['isAuthenticated'](),controller[_0xb239('0xa')]);router[_0xb239('0x9')](_0xb239('0xb'),auth[_0xb239('0xc')](),controller[_0xb239('0xd')]);router[_0xb239('0x9')]('/:id',auth[_0xb239('0xc')](),controller[_0xb239('0xe')]);router[_0xb239('0xf')]('/',auth[_0xb239('0xc')](),controller[_0xb239('0x10')]);router[_0xb239('0x11')](_0xb239('0x12'),auth[_0xb239('0xc')](),controller['update']);router[_0xb239('0x13')](_0xb239('0x12'),auth['isAuthenticated'](),controller['destroy']);module[_0xb239('0x14')]=router;