b1e46f6b23322d780f78ecc482388d2b8b98a39d
[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 _0x46e1=['../../config/environment','exports','define','AnalyticMetric','analytics_metrics','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0x46e1,0x155));var _0x146e=function(_0x572d3f,_0x468031){_0x572d3f=_0x572d3f-0x0;var _0x5eea85=_0x46e1[_0x572d3f];return _0x5eea85;};'use strict';var _=require(_0x146e('0x0'));var util=require(_0x146e('0x1'));var logger=require(_0x146e('0x2'))(_0x146e('0x3'));var moment=require(_0x146e('0x4'));var BPromise=require(_0x146e('0x5'));var rp=require(_0x146e('0x6'));var fs=require('fs');var path=require(_0x146e('0x7'));var rimraf=require(_0x146e('0x8'));var config=require(_0x146e('0x9'));var attributes=require('./analyticMetric.attributes');module[_0x146e('0xa')]=function(_0x1f1f15,_0x3de564){return _0x1f1f15[_0x146e('0xb')](_0x146e('0xc'),attributes,{'tableName':_0x146e('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};