3635e7d1359a2908c55ba932199ca65a8226cc69
[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 _0xe944=['define','AnalyticMetric','analytics_metrics','lodash','api','request-promise','../../config/environment','./analyticMetric.attributes','exports'];(function(_0xe9534e,_0x1d6dd2){var _0x51dc46=function(_0x5b4f3b){while(--_0x5b4f3b){_0xe9534e['push'](_0xe9534e['shift']());}};_0x51dc46(++_0x1d6dd2);}(_0xe944,0x174));var _0x4e94=function(_0x448539,_0x57598c){_0x448539=_0x448539-0x0;var _0x24bca5=_0xe944[_0x448539];return _0x24bca5;};'use strict';var _=require(_0x4e94('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x4e94('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x4e94('0x2'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x4e94('0x3'));var attributes=require(_0x4e94('0x4'));module[_0x4e94('0x5')]=function(_0xbb43ae,_0x4d00e5){return _0xbb43ae[_0x4e94('0x6')](_0x4e94('0x7'),attributes,{'tableName':_0x4e94('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};