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 _0x7546=['rimraf','./analyticFieldReport.attributes','exports','define','AnalyticFieldReport','analytics_report_fields','lodash','util','bluebird','path'];(function(_0x39d437,_0x3fc376){var _0x1c95e4=function(_0x31c492){while(--_0x31c492){_0x39d437['push'](_0x39d437['shift']());}};_0x1c95e4(++_0x3fc376);}(_0x7546,0x6a));var _0x6754=function(_0x15ad2f,_0x5649dd){_0x15ad2f=_0x15ad2f-0x0;var _0x4fce0a=_0x7546[_0x15ad2f];return _0x4fce0a;};'use strict';var _=require(_0x6754('0x0'));var util=require(_0x6754('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x6754('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6754('0x3'));var rimraf=require(_0x6754('0x4'));var config=require('../../config/environment');var attributes=require(_0x6754('0x5'));module[_0x6754('0x6')]=function(_0x24b4f0,_0x4203e6){return _0x24b4f0[_0x6754('0x7')](_0x6754('0x8'),attributes,{'tableName':_0x6754('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};