eaca35032b3cd14ebe438bcea8839163d67d7011
[motion2.git] / server / api / voiceAgentReport / 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 _0x750c=['describe','/:id','show','post','put','update','destroy','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe'];(function(_0xfccc6d,_0x20bc96){var _0x1fdcc1=function(_0x5f1ae4){while(--_0x5f1ae4){_0xfccc6d['push'](_0xfccc6d['shift']());}};_0x1fdcc1(++_0x20bc96);}(_0x750c,0x170));var _0xc750=function(_0x459a3e,_0x1d5da8){_0x459a3e=_0x459a3e-0x0;var _0x4c400d=_0x750c[_0x459a3e];return _0x4c400d;};'use strict';var multer=require(_0xc750('0x0'));var util=require(_0xc750('0x1'));var path=require(_0xc750('0x2'));var timeout=require(_0xc750('0x3'));var express=require(_0xc750('0x4'));var router=express[_0xc750('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xc750('0x6'));var config=require(_0xc750('0x7'));var controller=require('./voiceAgentReport.controller');router[_0xc750('0x8')]('/',auth[_0xc750('0x9')](),controller[_0xc750('0xa')]);router[_0xc750('0x8')](_0xc750('0xb'),auth[_0xc750('0x9')](),controller[_0xc750('0xc')]);router[_0xc750('0x8')](_0xc750('0xd'),auth[_0xc750('0x9')](),controller[_0xc750('0xe')]);router[_0xc750('0xf')]('/',auth[_0xc750('0x9')](),controller['create']);router[_0xc750('0x10')]('/:id',auth[_0xc750('0x9')](),controller[_0xc750('0x11')]);router['delete'](_0xc750('0xd'),auth['isAuthenticated'](),controller[_0xc750('0x12')]);module['exports']=router;