1e92346d8b7afc875cd4915280b129d0a06cf826
[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 _0x71f3=['/:id','show','post','put','delete','destroy','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareReport.controller','isAuthenticated','index','/describe','describe','get'];(function(_0x2ee4a2,_0x18b436){var _0x228ec2=function(_0x3e0995){while(--_0x3e0995){_0x2ee4a2['push'](_0x2ee4a2['shift']());}};_0x228ec2(++_0x18b436);}(_0x71f3,0x182));var _0x371f=function(_0x2ba66e,_0x5a390d){_0x2ba66e=_0x2ba66e-0x0;var _0x48584b=_0x71f3[_0x2ba66e];return _0x48584b;};'use strict';var multer=require(_0x371f('0x0'));var util=require('util');var path=require(_0x371f('0x1'));var timeout=require(_0x371f('0x2'));var express=require(_0x371f('0x3'));var router=express[_0x371f('0x4')]();var auth=require(_0x371f('0x5'));var interaction=require(_0x371f('0x6'));var config=require(_0x371f('0x7'));var controller=require(_0x371f('0x8'));router['get']('/',auth[_0x371f('0x9')](),controller[_0x371f('0xa')]);router['get'](_0x371f('0xb'),auth[_0x371f('0x9')](),controller[_0x371f('0xc')]);router[_0x371f('0xd')](_0x371f('0xe'),auth[_0x371f('0x9')](),controller[_0x371f('0xf')]);router[_0x371f('0x10')]('/',auth[_0x371f('0x9')](),controller['create']);router[_0x371f('0x11')](_0x371f('0xe'),auth['isAuthenticated'](),controller['update']);router[_0x371f('0x12')](_0x371f('0xe'),auth[_0x371f('0x9')](),controller[_0x371f('0x13')]);module['exports']=router;