509dac0d3b44fa848dd38d3092df6639b2f60e66
[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 _0xffba=['index','/describe','describe','/:id','show','post','update','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x4618ec,_0x4afff8){var _0x3449c5=function(_0x459e21){while(--_0x459e21){_0x4618ec['push'](_0x4618ec['shift']());}};_0x3449c5(++_0x4afff8);}(_0xffba,0x82));var _0xaffb=function(_0x2d0640,_0x4dea9d){_0x2d0640=_0x2d0640-0x0;var _0x215568=_0xffba[_0x2d0640];return _0x215568;};'use strict';var multer=require('multer');var util=require(_0xaffb('0x0'));var path=require(_0xaffb('0x1'));var timeout=require(_0xaffb('0x2'));var express=require(_0xaffb('0x3'));var router=express[_0xaffb('0x4')]();var fs_extra=require(_0xaffb('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xaffb('0x6'));var config=require(_0xaffb('0x7'));var controller=require('./jscriptyAnswerReport.controller');router[_0xaffb('0x8')]('/',auth[_0xaffb('0x9')](),controller[_0xaffb('0xa')]);router[_0xaffb('0x8')](_0xaffb('0xb'),auth[_0xaffb('0x9')](),controller[_0xaffb('0xc')]);router[_0xaffb('0x8')](_0xaffb('0xd'),auth['isAuthenticated'](),controller[_0xaffb('0xe')]);router[_0xaffb('0xf')]('/',auth[_0xaffb('0x9')](),controller['create']);router['put'](_0xaffb('0xd'),auth[_0xaffb('0x9')](),controller[_0xaffb('0x10')]);router[_0xaffb('0x11')](_0xaffb('0xd'),auth[_0xaffb('0x9')](),controller[_0xaffb('0x12')]);module[_0xaffb('0x13')]=router;