1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x0b13=['put','update','destroy','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','/:id','show','create'];(function(_0x30690c,_0x56d10e){var _0x136d07=function(_0x4e3185){while(--_0x4e3185){_0x30690c['push'](_0x30690c['shift']());}};_0x136d07(++_0x56d10e);}(_0x0b13,0x17e));var _0x30b1=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x0b13[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x30b1('0x0'));var util=require('util');var path=require(_0x30b1('0x1'));var timeout=require(_0x30b1('0x2'));var express=require('express');var router=express[_0x30b1('0x3')]();var auth=require(_0x30b1('0x4'));var interaction=require(_0x30b1('0x5'));var config=require('../../config/environment');var controller=require('./cdr.controller');router[_0x30b1('0x6')]('/',auth[_0x30b1('0x7')](),controller[_0x30b1('0x8')]);router['get'](_0x30b1('0x9'),auth[_0x30b1('0x7')](),controller[_0x30b1('0xa')]);router[_0x30b1('0x6')](_0x30b1('0xb'),auth[_0x30b1('0x7')](),controller[_0x30b1('0xc')]);router['post']('/',auth[_0x30b1('0x7')](),controller[_0x30b1('0xd')]);router[_0x30b1('0xe')](_0x30b1('0xb'),auth[_0x30b1('0x7')](),controller[_0x30b1('0xf')]);router['delete'](_0x30b1('0xb'),auth[_0x30b1('0x7')](),controller[_0x30b1('0x10')]);module[_0x30b1('0x11')]=router;