Built motion from commit d9028345.|2.5.43
[motion2.git] / server / api / analyticExtractedReport / 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 _0xb407=['update','delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id/download','download','create','put','/:id'];(function(_0x7efb54,_0x359524){var _0x35f370=function(_0x39c246){while(--_0x39c246){_0x7efb54['push'](_0x7efb54['shift']());}};_0x35f370(++_0x359524);}(_0xb407,0x168));var _0x7b40=function(_0x5c283a,_0x102278){_0x5c283a=_0x5c283a-0x0;var _0x1bd7c4=_0xb407[_0x5c283a];return _0x1bd7c4;};'use strict';var multer=require(_0x7b40('0x0'));var util=require(_0x7b40('0x1'));var path=require(_0x7b40('0x2'));var timeout=require(_0x7b40('0x3'));var express=require(_0x7b40('0x4'));var router=express[_0x7b40('0x5')]();var fs_extra=require(_0x7b40('0x6'));var auth=require(_0x7b40('0x7'));var interaction=require(_0x7b40('0x8'));var config=require(_0x7b40('0x9'));var controller=require('./analyticExtractedReport.controller');router[_0x7b40('0xa')]('/',auth[_0x7b40('0xb')](),controller[_0x7b40('0xc')]);router[_0x7b40('0xa')]('/:id',auth[_0x7b40('0xb')](),controller['show']);router['get'](_0x7b40('0xd'),auth['isAuthenticated'](),controller[_0x7b40('0xe')]);router['post']('/',auth[_0x7b40('0xb')](),controller[_0x7b40('0xf')]);router[_0x7b40('0x10')](_0x7b40('0x11'),auth[_0x7b40('0xb')](),controller[_0x7b40('0x12')]);router[_0x7b40('0x13')](_0x7b40('0x11'),auth[_0x7b40('0xb')](),controller['destroy']);module[_0x7b40('0x14')]=router;