dbb5377a006ef94ab01c3406d508f4ce151326d4
[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 _0x0272=['request-promise','path','rimraf','exports','lodash','util','api','moment','bluebird'];(function(_0x2d982d,_0x121028){var _0x4f36b0=function(_0x11f3a9){while(--_0x11f3a9){_0x2d982d['push'](_0x2d982d['shift']());}};_0x4f36b0(++_0x121028);}(_0x0272,0x15a));var _0x2027=function(_0x5336e0,_0x282cec){_0x5336e0=_0x5336e0-0x0;var _0x5e63f9=_0x0272[_0x5336e0];return _0x5e63f9;};'use strict';var _=require(_0x2027('0x0'));var util=require(_0x2027('0x1'));var logger=require('../../config/logger')(_0x2027('0x2'));var moment=require(_0x2027('0x3'));var BPromise=require(_0x2027('0x4'));var rp=require(_0x2027('0x5'));var fs=require('fs');var path=require(_0x2027('0x6'));var rimraf=require(_0x2027('0x7'));var config=require('../../config/environment');var attributes=require('./analyticMetric.attributes');module[_0x2027('0x8')]=function(_0x1ea303,_0x2deefc){return _0x1ea303['define']('AnalyticMetric',attributes,{'tableName':'analytics_metrics','paranoid':![],'indexes':[],'timestamps':!![]});};