Built motion from commit 47436d59.|2.6.7
[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 _0x21c0=['show','/:id/questions','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','get','/describe','isAuthenticated','describe'];(function(_0x4031e5,_0x5d9cd0){var _0x25b248=function(_0x3f0d9a){while(--_0x3f0d9a){_0x4031e5['push'](_0x4031e5['shift']());}};_0x25b248(++_0x5d9cd0);}(_0x21c0,0x9f));var _0x021c=function(_0x324788,_0x5aac3a){_0x324788=_0x324788-0x0;var _0x5b28c7=_0x21c0[_0x324788];return _0x5b28c7;};'use strict';var multer=require(_0x021c('0x0'));var util=require(_0x021c('0x1'));var path=require(_0x021c('0x2'));var timeout=require(_0x021c('0x3'));var express=require(_0x021c('0x4'));var router=express[_0x021c('0x5')]();var fs_extra=require(_0x021c('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x021c('0x7'));var config=require('../../config/environment');var controller=require('./jscriptySessionReport.controller');router[_0x021c('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x021c('0x8')](_0x021c('0x9'),auth[_0x021c('0xa')](),controller[_0x021c('0xb')]);router[_0x021c('0x8')]('/:id',auth[_0x021c('0xa')](),controller[_0x021c('0xc')]);router[_0x021c('0x8')](_0x021c('0xd'),auth[_0x021c('0xa')](),controller['getQuestions']);router['post']('/',auth[_0x021c('0xa')](),controller['create']);router['put'](_0x021c('0xe'),auth[_0x021c('0xa')](),controller[_0x021c('0xf')]);router[_0x021c('0x10')](_0x021c('0xe'),auth[_0x021c('0xa')](),controller[_0x021c('0x11')]);module[_0x021c('0x12')]=router;