0c4949448aa379e657ecdb0936787e3f6b7b9893
[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 _0x69e1=['AnalyticMetric','analytics_metrics','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','exports','define'];(function(_0x4d4c45,_0x36f1c1){var _0x305ecb=function(_0x6739ad){while(--_0x6739ad){_0x4d4c45['push'](_0x4d4c45['shift']());}};_0x305ecb(++_0x36f1c1);}(_0x69e1,0x1af));var _0x169e=function(_0x37482a,_0x585b4b){_0x37482a=_0x37482a-0x0;var _0x2a63bc=_0x69e1[_0x37482a];return _0x2a63bc;};'use strict';var _=require(_0x169e('0x0'));var util=require(_0x169e('0x1'));var logger=require(_0x169e('0x2'))(_0x169e('0x3'));var moment=require('moment');var BPromise=require(_0x169e('0x4'));var rp=require(_0x169e('0x5'));var fs=require('fs');var path=require(_0x169e('0x6'));var rimraf=require(_0x169e('0x7'));var config=require(_0x169e('0x8'));var attributes=require('./analyticMetric.attributes');module[_0x169e('0x9')]=function(_0x38ae8e,_0x5ce010){return _0x38ae8e[_0x169e('0xa')](_0x169e('0xb'),attributes,{'tableName':_0x169e('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};