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 _0x4cb0=['/describe','describe','show','post','put','update','delete','/:id','exports','multer','connect-timeout','Router','../../components/interaction/service','./cdr.controller','get','isAuthenticated'];(function(_0x33fd71,_0x1562e2){var _0x3b1daf=function(_0x34ea7d){while(--_0x34ea7d){_0x33fd71['push'](_0x33fd71['shift']());}};_0x3b1daf(++_0x1562e2);}(_0x4cb0,0x169));var _0x04cb=function(_0x18dfce,_0x4aba3d){_0x18dfce=_0x18dfce-0x0;var _0x39e278=_0x4cb0[_0x18dfce];return _0x39e278;};'use strict';var multer=require(_0x04cb('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x04cb('0x1'));var express=require('express');var router=express[_0x04cb('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0x04cb('0x3'));var config=require('../../config/environment');var controller=require(_0x04cb('0x4'));router[_0x04cb('0x5')]('/',auth[_0x04cb('0x6')](),controller['index']);router['get'](_0x04cb('0x7'),auth['isAuthenticated'](),controller[_0x04cb('0x8')]);router[_0x04cb('0x5')]('/:id',auth[_0x04cb('0x6')](),controller[_0x04cb('0x9')]);router[_0x04cb('0xa')]('/',auth[_0x04cb('0x6')](),controller['create']);router[_0x04cb('0xb')]('/:id',auth[_0x04cb('0x6')](),controller[_0x04cb('0xc')]);router[_0x04cb('0xd')](_0x04cb('0xe'),auth[_0x04cb('0x6')](),controller['destroy']);module[_0x04cb('0xf')]=router;