ed93eb7f9a79aea5c3daf5f18060e3b1ecc3d43f
[motion2.git] / server / api / jscriptyQuestionReport / 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 _0x8bc1=['isAuthenticated','describe','show','post','create','put','/:id','delete','destroy','exports','multer','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0x8bc1,0x1ae));var _0x18bc=function(_0x8fd62a,_0x18203d){_0x8fd62a=_0x8fd62a-0x0;var _0x2354bc=_0x8bc1[_0x8fd62a];return _0x2354bc;};'use strict';var multer=require(_0x18bc('0x0'));var util=require('util');var path=require(_0x18bc('0x1'));var timeout=require('connect-timeout');var express=require(_0x18bc('0x2'));var router=express[_0x18bc('0x3')]();var fs_extra=require(_0x18bc('0x4'));var auth=require(_0x18bc('0x5'));var interaction=require(_0x18bc('0x6'));var config=require(_0x18bc('0x7'));var controller=require('./jscriptyQuestionReport.controller');router[_0x18bc('0x8')]('/',auth['isAuthenticated'](),controller[_0x18bc('0x9')]);router[_0x18bc('0x8')]('/describe',auth[_0x18bc('0xa')](),controller[_0x18bc('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x18bc('0xc')]);router[_0x18bc('0xd')]('/',auth[_0x18bc('0xa')](),controller[_0x18bc('0xe')]);router[_0x18bc('0xf')](_0x18bc('0x10'),auth['isAuthenticated'](),controller['update']);router[_0x18bc('0x11')](_0x18bc('0x10'),auth['isAuthenticated'](),controller[_0x18bc('0x12')]);module[_0x18bc('0x13')]=router;