766f4af5dfa6bedf458f1854bed2faeb5a7c0184
[motion2.git] / server / api / squareReportDetail / 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 _0x7340=['index','/describe','describe','show','post','create','put','/:id','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated'];(function(_0x597e38,_0x551ac2){var _0x5305d2=function(_0x47dc5e){while(--_0x47dc5e){_0x597e38['push'](_0x597e38['shift']());}};_0x5305d2(++_0x551ac2);}(_0x7340,0x16f));var _0x0734=function(_0x578fba,_0x1bf2e4){_0x578fba=_0x578fba-0x0;var _0x317f27=_0x7340[_0x578fba];return _0x317f27;};'use strict';var multer=require(_0x0734('0x0'));var util=require(_0x0734('0x1'));var path=require(_0x0734('0x2'));var timeout=require(_0x0734('0x3'));var express=require(_0x0734('0x4'));var router=express[_0x0734('0x5')]();var fs_extra=require(_0x0734('0x6'));var auth=require(_0x0734('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x0734('0x8'));var controller=require('./squareReportDetail.controller');router[_0x0734('0x9')]('/',auth[_0x0734('0xa')](),controller[_0x0734('0xb')]);router[_0x0734('0x9')](_0x0734('0xc'),auth[_0x0734('0xa')](),controller[_0x0734('0xd')]);router['get']('/:id',auth[_0x0734('0xa')](),controller[_0x0734('0xe')]);router[_0x0734('0xf')]('/',auth[_0x0734('0xa')](),controller[_0x0734('0x10')]);router[_0x0734('0x11')](_0x0734('0x12'),auth['isAuthenticated'](),controller['update']);router[_0x0734('0x13')](_0x0734('0x12'),auth[_0x0734('0xa')](),controller[_0x0734('0x14')]);module['exports']=router;