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 _0xaf1c=['define','VoiceCallReport','report_call','uniqueid','util','bluebird','request-promise','path','rimraf','./voiceCallReport.attributes','exports'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0xaf1c,0x1c7));var _0xcaf1=function(_0x91d46c,_0x2ec5cc){_0x91d46c=_0x91d46c-0x0;var _0x576889=_0xaf1c[_0x91d46c];return _0x576889;};'use strict';var _=require('lodash');var util=require(_0xcaf1('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xcaf1('0x1'));var rp=require(_0xcaf1('0x2'));var fs=require('fs');var path=require(_0xcaf1('0x3'));var rimraf=require(_0xcaf1('0x4'));var config=require('../../config/environment');var attributes=require(_0xcaf1('0x5'));module[_0xcaf1('0x6')]=function(_0x480482,_0x4c7908){return _0x480482[_0xcaf1('0x7')](_0xcaf1('0x8'),attributes,{'tableName':_0xcaf1('0x9'),'paranoid':![],'indexes':[{'fields':[_0xcaf1('0xa')]}],'timestamps':!![]});};