Built motion from commit e38a297d.|2.6.18
[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 _0x61f8=['../../components/interaction/service','../../config/environment','get','index','/describe','isAuthenticated','/:id','show','create','update','delete','exports','util','connect-timeout','express'];(function(_0x2265da,_0xfbbd2e){var _0x430c2b=function(_0x20d671){while(--_0x20d671){_0x2265da['push'](_0x2265da['shift']());}};_0x430c2b(++_0xfbbd2e);}(_0x61f8,0x1b0));var _0x861f=function(_0x22b8a3,_0x2a79a7){_0x22b8a3=_0x22b8a3-0x0;var _0x199a0c=_0x61f8[_0x22b8a3];return _0x199a0c;};'use strict';var multer=require('multer');var util=require(_0x861f('0x0'));var path=require('path');var timeout=require(_0x861f('0x1'));var express=require(_0x861f('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x861f('0x3'));var config=require(_0x861f('0x4'));var controller=require('./squareReportDetail.controller');router[_0x861f('0x5')]('/',auth['isAuthenticated'](),controller[_0x861f('0x6')]);router[_0x861f('0x5')](_0x861f('0x7'),auth[_0x861f('0x8')](),controller['describe']);router['get'](_0x861f('0x9'),auth[_0x861f('0x8')](),controller[_0x861f('0xa')]);router['post']('/',auth[_0x861f('0x8')](),controller[_0x861f('0xb')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x861f('0xc')]);router[_0x861f('0xd')](_0x861f('0x9'),auth['isAuthenticated'](),controller['destroy']);module[_0x861f('0xe')]=router;