6b482aefabdb5ea1843190a533bf31acb60627c0
[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 _0xdaf7=['util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','describe','show','post','/:id','update','destroy','exports'];(function(_0x1feffd,_0x10faf0){var _0x35eb9a=function(_0x4e5f58){while(--_0x4e5f58){_0x1feffd['push'](_0x1feffd['shift']());}};_0x35eb9a(++_0x10faf0);}(_0xdaf7,0x160));var _0x7daf=function(_0x54e519,_0x542fc7){_0x54e519=_0x54e519-0x0;var _0x1bec40=_0xdaf7[_0x54e519];return _0x1bec40;};'use strict';var multer=require('multer');var util=require(_0x7daf('0x0'));var path=require('path');var timeout=require(_0x7daf('0x1'));var express=require(_0x7daf('0x2'));var router=express[_0x7daf('0x3')]();var fs_extra=require(_0x7daf('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x7daf('0x5'));var config=require(_0x7daf('0x6'));var controller=require('./squareReportDetail.controller');router[_0x7daf('0x7')]('/',auth[_0x7daf('0x8')](),controller['index']);router[_0x7daf('0x7')]('/describe',auth[_0x7daf('0x8')](),controller[_0x7daf('0x9')]);router[_0x7daf('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x7daf('0xa')]);router[_0x7daf('0xb')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x7daf('0xc'),auth['isAuthenticated'](),controller[_0x7daf('0xd')]);router['delete'](_0x7daf('0xc'),auth[_0x7daf('0x8')](),controller[_0x7daf('0xe')]);module[_0x7daf('0xf')]=router;