1e73c2f00b4ef475de78edb6171e0ab1261c5b93
[motion2.git] / server / api / jscriptyAnswerReport / 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 _0x12c8=['update','exports','multer','path','connect-timeout','express','Router','../../components/interaction/service','./jscriptyAnswerReport.controller','get','isAuthenticated','index','describe','show','post','create','/:id'];(function(_0x1c07d9,_0x2876fa){var _0x48603a=function(_0xe1b6dd){while(--_0xe1b6dd){_0x1c07d9['push'](_0x1c07d9['shift']());}};_0x48603a(++_0x2876fa);}(_0x12c8,0x112));var _0x812c=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x12c8[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x812c('0x0'));var util=require('util');var path=require(_0x812c('0x1'));var timeout=require(_0x812c('0x2'));var express=require(_0x812c('0x3'));var router=express[_0x812c('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x812c('0x5'));var config=require('../../config/environment');var controller=require(_0x812c('0x6'));router[_0x812c('0x7')]('/',auth[_0x812c('0x8')](),controller[_0x812c('0x9')]);router[_0x812c('0x7')]('/describe',auth[_0x812c('0x8')](),controller[_0x812c('0xa')]);router[_0x812c('0x7')]('/:id',auth[_0x812c('0x8')](),controller[_0x812c('0xb')]);router[_0x812c('0xc')]('/',auth[_0x812c('0x8')](),controller[_0x812c('0xd')]);router['put'](_0x812c('0xe'),auth['isAuthenticated'](),controller[_0x812c('0xf')]);router['delete']('/:id',auth[_0x812c('0x8')](),controller['destroy']);module[_0x812c('0x10')]=router;