Built motion from commit (unavailable).|2.5.2
[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 _0xfdae=['AnalyticMetric','analytics_metrics','lodash','../../config/logger','api','moment','request-promise','exports'];(function(_0x4552b2,_0x498ef5){var _0xec7a05=function(_0x579a28){while(--_0x579a28){_0x4552b2['push'](_0x4552b2['shift']());}};_0xec7a05(++_0x498ef5);}(_0xfdae,0x1f2));var _0xefda=function(_0x3f51a2,_0x1fbe8f){_0x3f51a2=_0x3f51a2-0x0;var _0x5ad317=_0xfdae[_0x3f51a2];return _0x5ad317;};'use strict';var _=require(_0xefda('0x0'));var util=require('util');var logger=require(_0xefda('0x1'))(_0xefda('0x2'));var moment=require(_0xefda('0x3'));var BPromise=require('bluebird');var rp=require(_0xefda('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./analyticMetric.attributes');module[_0xefda('0x5')]=function(_0x3d2e62,_0x555eee){return _0x3d2e62['define'](_0xefda('0x6'),attributes,{'tableName':_0xefda('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};