Built motion from commit da617fac.|2.6.6
[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 _0x9b69=['connect-timeout','express','Router','../../components/auth/service','../../config/environment','./voiceDialReport.controller','get','isAuthenticated','describe','/:id','show','post','create','delete','destroy','multer','path'];(function(_0xfd49ed,_0x1272e1){var _0x355f54=function(_0x3fc70f){while(--_0x3fc70f){_0xfd49ed['push'](_0xfd49ed['shift']());}};_0x355f54(++_0x1272e1);}(_0x9b69,0x196));var _0x99b6=function(_0x143154,_0x763cda){_0x143154=_0x143154-0x0;var _0x2b64d6=_0x9b69[_0x143154];return _0x2b64d6;};'use strict';var multer=require(_0x99b6('0x0'));var util=require('util');var path=require(_0x99b6('0x1'));var timeout=require(_0x99b6('0x2'));var express=require(_0x99b6('0x3'));var router=express[_0x99b6('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x99b6('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x99b6('0x6'));var controller=require(_0x99b6('0x7'));router[_0x99b6('0x8')]('/',auth[_0x99b6('0x9')](),controller['index']);router['get']('/describe',auth['isAuthenticated'](),controller[_0x99b6('0xa')]);router[_0x99b6('0x8')](_0x99b6('0xb'),auth[_0x99b6('0x9')](),controller[_0x99b6('0xc')]);router[_0x99b6('0xd')]('/',auth[_0x99b6('0x9')](),controller[_0x99b6('0xe')]);router['put'](_0x99b6('0xb'),auth['isAuthenticated'](),controller['update']);router[_0x99b6('0xf')](_0x99b6('0xb'),auth[_0x99b6('0x9')](),controller[_0x99b6('0x10')]);module['exports']=router;