9a32424cc75cced5ed8df9324fd9e6c323aad619
[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 _0x4fe0=['request-promise','rimraf','./analyticMetric.attributes','exports','AnalyticMetric','util','../../config/logger','api','moment','bluebird'];(function(_0x53abb2,_0x22c789){var _0x3e125d=function(_0x5cc191){while(--_0x5cc191){_0x53abb2['push'](_0x53abb2['shift']());}};_0x3e125d(++_0x22c789);}(_0x4fe0,0x195));var _0x04fe=function(_0x1ef393,_0x2f116a){_0x1ef393=_0x1ef393-0x0;var _0x184806=_0x4fe0[_0x1ef393];return _0x184806;};'use strict';var _=require('lodash');var util=require(_0x04fe('0x0'));var logger=require(_0x04fe('0x1'))(_0x04fe('0x2'));var moment=require(_0x04fe('0x3'));var BPromise=require(_0x04fe('0x4'));var rp=require(_0x04fe('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x04fe('0x6'));var config=require('../../config/environment');var attributes=require(_0x04fe('0x7'));module[_0x04fe('0x8')]=function(_0x1f74fb,_0x33bdfa){return _0x1f74fb['define'](_0x04fe('0x9'),attributes,{'tableName':'analytics_metrics','paranoid':![],'indexes':[],'timestamps':!![]});};