Built motion from commit 47436d59.|2.6.7
[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 _0x9015=['put','update','delete','destroy','exports','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','isAuthenticated','get','/describe','describe','/:id','show','post','create'];(function(_0x73e8dd,_0x20235a){var _0x3bb3f2=function(_0x47600a){while(--_0x47600a){_0x73e8dd['push'](_0x73e8dd['shift']());}};_0x3bb3f2(++_0x20235a);}(_0x9015,0x145));var _0x5901=function(_0x2be8c2,_0x14a4b5){_0x2be8c2=_0x2be8c2-0x0;var _0x97f531=_0x9015[_0x2be8c2];return _0x97f531;};'use strict';var multer=require('multer');var util=require(_0x5901('0x0'));var path=require(_0x5901('0x1'));var timeout=require(_0x5901('0x2'));var express=require(_0x5901('0x3'));var router=express['Router']();var fs_extra=require(_0x5901('0x4'));var auth=require(_0x5901('0x5'));var interaction=require(_0x5901('0x6'));var config=require('../../config/environment');var controller=require('./squareReportDetail.controller');router['get']('/',auth[_0x5901('0x7')](),controller['index']);router[_0x5901('0x8')](_0x5901('0x9'),auth['isAuthenticated'](),controller[_0x5901('0xa')]);router['get'](_0x5901('0xb'),auth[_0x5901('0x7')](),controller[_0x5901('0xc')]);router[_0x5901('0xd')]('/',auth[_0x5901('0x7')](),controller[_0x5901('0xe')]);router[_0x5901('0xf')]('/:id',auth[_0x5901('0x7')](),controller[_0x5901('0x10')]);router[_0x5901('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x5901('0x12')]);module[_0x5901('0x13')]=router;