Built motion from commit 3c2ce842.|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 _0x9d2a=['index','/describe','isAuthenticated','describe','/:id','put','update','delete','multer','util','path','../../components/interaction/service','../../config/environment','get'];(function(_0x4dc7bb,_0xf1c679){var _0x3ff3ef=function(_0x258651){while(--_0x258651){_0x4dc7bb['push'](_0x4dc7bb['shift']());}};_0x3ff3ef(++_0xf1c679);}(_0x9d2a,0x1e4));var _0xa9d2=function(_0x49645a,_0x28f417){_0x49645a=_0x49645a-0x0;var _0x2b2c26=_0x9d2a[_0x49645a];return _0x2b2c26;};'use strict';var multer=require(_0xa9d2('0x0'));var util=require(_0xa9d2('0x1'));var path=require(_0xa9d2('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xa9d2('0x3'));var config=require(_0xa9d2('0x4'));var controller=require('./voiceDialReport.controller');router[_0xa9d2('0x5')]('/',auth['isAuthenticated'](),controller[_0xa9d2('0x6')]);router[_0xa9d2('0x5')](_0xa9d2('0x7'),auth[_0xa9d2('0x8')](),controller[_0xa9d2('0x9')]);router[_0xa9d2('0x5')](_0xa9d2('0xa'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xa9d2('0xb')](_0xa9d2('0xa'),auth[_0xa9d2('0x8')](),controller[_0xa9d2('0xc')]);router[_0xa9d2('0xd')]('/:id',auth['isAuthenticated'](),controller['destroy']);module['exports']=router;