1e0b22d04f44dc590e12e5023dd1243366f1023f
[motion2.git] / server / api / voiceCallReport / 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 _0xaa79=['express','Router','./voiceCallReport.controller','isAuthenticated','get','/describe','describe','show','post','/:id','update','/with-retry/:id','delete','exports'];(function(_0x258f4d,_0x24df3b){var _0x497b92=function(_0x455de7){while(--_0x455de7){_0x258f4d['push'](_0x258f4d['shift']());}};_0x497b92(++_0x24df3b);}(_0xaa79,0xfc));var _0x9aa7=function(_0x213229,_0x3166fe){_0x213229=_0x213229-0x0;var _0x4a51ee=_0xaa79[_0x213229];return _0x4a51ee;};'use strict';var express=require(_0x9aa7('0x0'));var router=express[_0x9aa7('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x9aa7('0x2'));router['get']('/',auth[_0x9aa7('0x3')](),controller['index']);router[_0x9aa7('0x4')](_0x9aa7('0x5'),auth[_0x9aa7('0x3')](),controller[_0x9aa7('0x6')]);router[_0x9aa7('0x4')]('/:id',auth[_0x9aa7('0x3')](),controller[_0x9aa7('0x7')]);router[_0x9aa7('0x8')]('/',auth[_0x9aa7('0x3')](),controller['create']);router['put'](_0x9aa7('0x9'),auth['isAuthenticated'](),controller[_0x9aa7('0xa')]);router['put'](_0x9aa7('0xb'),auth[_0x9aa7('0x3')](),controller['updateWithRetry']);router[_0x9aa7('0xc')](_0x9aa7('0x9'),auth[_0x9aa7('0x3')](),controller['destroy']);module[_0x9aa7('0xd')]=router;