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 _0x91f1=['rimraf','../../config/environment','./analyticMetric.attributes','exports','define','util','../../config/logger','bluebird'];(function(_0x54aaba,_0xbe9108){var _0x29a29a=function(_0x88185){while(--_0x88185){_0x54aaba['push'](_0x54aaba['shift']());}};_0x29a29a(++_0xbe9108);}(_0x91f1,0x75));var _0x191f=function(_0x2ed40d,_0x78e9cc){_0x2ed40d=_0x2ed40d-0x0;var _0x40cdab=_0x91f1[_0x2ed40d];return _0x40cdab;};'use strict';var _=require('lodash');var util=require(_0x191f('0x0'));var logger=require(_0x191f('0x1'))('api');var moment=require('moment');var BPromise=require(_0x191f('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x191f('0x3'));var config=require(_0x191f('0x4'));var attributes=require(_0x191f('0x5'));module[_0x191f('0x6')]=function(_0x4bc9ea,_0x36b319){return _0x4bc9ea[_0x191f('0x7')]('AnalyticMetric',attributes,{'tableName':'analytics_metrics','paranoid':![],'indexes':[],'timestamps':!![]});};