ab18614385daa2cf8d81a22a715d6083db3aa6f3
[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 _0xb0f6=['index','/describe','/:id','show','getQuestions','post','create','put','update','delete','multer','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./jscriptySessionReport.controller','get','isAuthenticated'];(function(_0x346612,_0x462c7e){var _0x4a2265=function(_0x369ce7){while(--_0x369ce7){_0x346612['push'](_0x346612['shift']());}};_0x4a2265(++_0x462c7e);}(_0xb0f6,0x114));var _0x6b0f=function(_0x459bd6,_0x5171f0){_0x459bd6=_0x459bd6-0x0;var _0x520c53=_0xb0f6[_0x459bd6];return _0x520c53;};'use strict';var multer=require(_0x6b0f('0x0'));var util=require('util');var path=require(_0x6b0f('0x1'));var timeout=require(_0x6b0f('0x2'));var express=require('express');var router=express[_0x6b0f('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x6b0f('0x4'));var config=require(_0x6b0f('0x5'));var controller=require(_0x6b0f('0x6'));router[_0x6b0f('0x7')]('/',auth[_0x6b0f('0x8')](),controller[_0x6b0f('0x9')]);router[_0x6b0f('0x7')](_0x6b0f('0xa'),auth[_0x6b0f('0x8')](),controller['describe']);router['get'](_0x6b0f('0xb'),auth[_0x6b0f('0x8')](),controller[_0x6b0f('0xc')]);router[_0x6b0f('0x7')]('/:id/questions',auth[_0x6b0f('0x8')](),controller[_0x6b0f('0xd')]);router[_0x6b0f('0xe')]('/',auth[_0x6b0f('0x8')](),controller[_0x6b0f('0xf')]);router[_0x6b0f('0x10')](_0x6b0f('0xb'),auth[_0x6b0f('0x8')](),controller[_0x6b0f('0x11')]);router[_0x6b0f('0x12')]('/:id',auth['isAuthenticated'](),controller['destroy']);module['exports']=router;