Built motion from commit b7e79837.|2.6.29
[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 _0x108a=['./jscriptySessionReport.controller','get','isAuthenticated','/describe','describe','/:id','getQuestions','post','create','update','delete','exports','multer','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x3cc9d9,_0x69ed38){var _0x1a425d=function(_0x44d109){while(--_0x44d109){_0x3cc9d9['push'](_0x3cc9d9['shift']());}};_0x1a425d(++_0x69ed38);}(_0x108a,0x160));var _0xa108=function(_0x2d8793,_0xf8642c){_0x2d8793=_0x2d8793-0x0;var _0x28ed09=_0x108a[_0x2d8793];return _0x28ed09;};'use strict';var multer=require(_0xa108('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa108('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xa108('0x2'));var auth=require(_0xa108('0x3'));var interaction=require(_0xa108('0x4'));var config=require('../../config/environment');var controller=require(_0xa108('0x5'));router[_0xa108('0x6')]('/',auth[_0xa108('0x7')](),controller['index']);router['get'](_0xa108('0x8'),auth[_0xa108('0x7')](),controller[_0xa108('0x9')]);router[_0xa108('0x6')](_0xa108('0xa'),auth[_0xa108('0x7')](),controller['show']);router[_0xa108('0x6')]('/:id/questions',auth[_0xa108('0x7')](),controller[_0xa108('0xb')]);router[_0xa108('0xc')]('/',auth[_0xa108('0x7')](),controller[_0xa108('0xd')]);router['put']('/:id',auth[_0xa108('0x7')](),controller[_0xa108('0xe')]);router[_0xa108('0xf')](_0xa108('0xa'),auth[_0xa108('0x7')](),controller['destroy']);module[_0xa108('0x10')]=router;