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 _0xe829=['define','AnalyticMetric','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x2aba06,_0x4d8e53){var _0x110f2e=function(_0x296750){while(--_0x296750){_0x2aba06['push'](_0x2aba06['shift']());}};_0x110f2e(++_0x4d8e53);}(_0xe829,0xde));var _0x9e82=function(_0x145016,_0x40ba0b){_0x145016=_0x145016-0x0;var _0x4a57e8=_0xe829[_0x145016];return _0x4a57e8;};'use strict';var _=require('lodash');var util=require(_0x9e82('0x0'));var logger=require(_0x9e82('0x1'))(_0x9e82('0x2'));var moment=require(_0x9e82('0x3'));var BPromise=require(_0x9e82('0x4'));var rp=require(_0x9e82('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x9e82('0x6'));var config=require(_0x9e82('0x7'));var attributes=require('./analyticMetric.attributes');module['exports']=function(_0x4b8d53,_0x46f5db){return _0x4b8d53[_0x9e82('0x8')](_0x9e82('0x9'),attributes,{'tableName':'analytics_metrics','paranoid':![],'indexes':[],'timestamps':!![]});};