Built motion from commit 1efd3d96.|2.6.31
[motion2.git] / server / api / voiceDialReport / 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 _0x4c78=['/describe','put','/:id','update','delete','destroy','exports','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','./voiceDialReport.controller','get','isAuthenticated'];(function(_0xd0b55c,_0x518d87){var _0x18877d=function(_0x2f4f33){while(--_0x2f4f33){_0xd0b55c['push'](_0xd0b55c['shift']());}};_0x18877d(++_0x518d87);}(_0x4c78,0x117));var _0x84c7=function(_0x14820b,_0x320176){_0x14820b=_0x14820b-0x0;var _0x2345d3=_0x4c78[_0x14820b];return _0x2345d3;};'use strict';var multer=require(_0x84c7('0x0'));var util=require(_0x84c7('0x1'));var path=require(_0x84c7('0x2'));var timeout=require('connect-timeout');var express=require(_0x84c7('0x3'));var router=express[_0x84c7('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x84c7('0x5'));var config=require(_0x84c7('0x6'));var controller=require(_0x84c7('0x7'));router[_0x84c7('0x8')]('/',auth[_0x84c7('0x9')](),controller['index']);router['get'](_0x84c7('0xa'),auth[_0x84c7('0x9')](),controller['describe']);router[_0x84c7('0x8')]('/:id',auth[_0x84c7('0x9')](),controller['show']);router['post']('/',auth[_0x84c7('0x9')](),controller['create']);router[_0x84c7('0xb')](_0x84c7('0xc'),auth['isAuthenticated'](),controller[_0x84c7('0xd')]);router[_0x84c7('0xe')](_0x84c7('0xc'),auth[_0x84c7('0x9')](),controller[_0x84c7('0xf')]);module[_0x84c7('0x10')]=router;