1e453f32eb04c215d9a1aa5857e7f62574518cbf
[motion2.git] / server / api / jscriptySessionReport / 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 _0x2ad8=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./jscriptySessionReport.controller','isAuthenticated','index','get','/describe','describe','/:id','show','getQuestions','post','create','put','delete','destroy','exports','multer'];(function(_0x1e66c6,_0x3c85e3){var _0x23d5ef=function(_0x51eb69){while(--_0x51eb69){_0x1e66c6['push'](_0x1e66c6['shift']());}};_0x23d5ef(++_0x3c85e3);}(_0x2ad8,0xc5));var _0x82ad=function(_0x406a99,_0x52f88e){_0x406a99=_0x406a99-0x0;var _0x4ba7ad=_0x2ad8[_0x406a99];return _0x4ba7ad;};'use strict';var multer=require(_0x82ad('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x82ad('0x1'));var express=require(_0x82ad('0x2'));var router=express[_0x82ad('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x82ad('0x4'));var interaction=require(_0x82ad('0x5'));var config=require(_0x82ad('0x6'));var controller=require(_0x82ad('0x7'));router['get']('/',auth[_0x82ad('0x8')](),controller[_0x82ad('0x9')]);router[_0x82ad('0xa')](_0x82ad('0xb'),auth['isAuthenticated'](),controller[_0x82ad('0xc')]);router[_0x82ad('0xa')](_0x82ad('0xd'),auth['isAuthenticated'](),controller[_0x82ad('0xe')]);router['get']('/:id/questions',auth[_0x82ad('0x8')](),controller[_0x82ad('0xf')]);router[_0x82ad('0x10')]('/',auth[_0x82ad('0x8')](),controller[_0x82ad('0x11')]);router[_0x82ad('0x12')](_0x82ad('0xd'),auth[_0x82ad('0x8')](),controller['update']);router[_0x82ad('0x13')](_0x82ad('0xd'),auth[_0x82ad('0x8')](),controller[_0x82ad('0x14')]);module[_0x82ad('0x15')]=router;