bb6cab581f7f31038d6dc7d5f63631b9dbb3d0bc
[motion2.git] / server / api / analyticMetric / analyticMetric.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x0b1f=['define','AnalyticMetric','analytics_metrics','lodash','../../config/logger','api','bluebird','path','rimraf','../../config/environment','exports'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x0b1f,0x163));var _0xf0b1=function(_0x5f5ac8,_0x18069d){_0x5f5ac8=_0x5f5ac8-0x0;var _0xdec009=_0x0b1f[_0x5f5ac8];return _0xdec009;};'use strict';var _=require(_0xf0b1('0x0'));var util=require('util');var logger=require(_0xf0b1('0x1'))(_0xf0b1('0x2'));var moment=require('moment');var BPromise=require(_0xf0b1('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf0b1('0x4'));var rimraf=require(_0xf0b1('0x5'));var config=require(_0xf0b1('0x6'));var attributes=require('./analyticMetric.attributes');module[_0xf0b1('0x7')]=function(_0x358995,_0x50bb16){return _0x358995[_0xf0b1('0x8')](_0xf0b1('0x9'),attributes,{'tableName':_0xf0b1('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};