176a30cdc0f3f1ec6deb61b30e10fd092b87be9f
[motion2.git] / server / api / voiceTransferReport / 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 _0x19ea=['util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','get','/describe','describe','show','post','put','update','delete','/:id','destroy','exports'];(function(_0xd1cf76,_0x1e667d){var _0x580cbf=function(_0x51dc24){while(--_0x51dc24){_0xd1cf76['push'](_0xd1cf76['shift']());}};_0x580cbf(++_0x1e667d);}(_0x19ea,0x1b8));var _0xa19e=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0x19ea[_0x3947c9];return _0x2e7871;};'use strict';var multer=require('multer');var util=require(_0xa19e('0x0'));var path=require('path');var timeout=require(_0xa19e('0x1'));var express=require(_0xa19e('0x2'));var router=express[_0xa19e('0x3')]();var fs_extra=require(_0xa19e('0x4'));var auth=require(_0xa19e('0x5'));var interaction=require(_0xa19e('0x6'));var config=require('../../config/environment');var controller=require('./voiceTransferReport.controller');router['get']('/',auth[_0xa19e('0x7')](),controller[_0xa19e('0x8')]);router[_0xa19e('0x9')](_0xa19e('0xa'),auth[_0xa19e('0x7')](),controller[_0xa19e('0xb')]);router[_0xa19e('0x9')]('/:id',auth[_0xa19e('0x7')](),controller[_0xa19e('0xc')]);router[_0xa19e('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0xa19e('0xe')]('/:id',auth[_0xa19e('0x7')](),controller[_0xa19e('0xf')]);router[_0xa19e('0x10')](_0xa19e('0x11'),auth[_0xa19e('0x7')](),controller[_0xa19e('0x12')]);module[_0xa19e('0x13')]=router;