Built motion from commit (unavailable).|2.5.4
[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 _0xaef4=['moment','path','rimraf','../../config/environment','exports','lodash','util','api'];(function(_0x157223,_0xf9bf30){var _0x21b6a2=function(_0x310e28){while(--_0x310e28){_0x157223['push'](_0x157223['shift']());}};_0x21b6a2(++_0xf9bf30);}(_0xaef4,0xfd));var _0x4aef=function(_0x3317bf,_0x5cf768){_0x3317bf=_0x3317bf-0x0;var _0x1aa33c=_0xaef4[_0x3317bf];return _0x1aa33c;};'use strict';var _=require(_0x4aef('0x0'));var util=require(_0x4aef('0x1'));var logger=require('../../config/logger')(_0x4aef('0x2'));var moment=require(_0x4aef('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x4aef('0x4'));var rimraf=require(_0x4aef('0x5'));var config=require(_0x4aef('0x6'));var attributes=require('./analyticMetric.attributes');module[_0x4aef('0x7')]=function(_0x168b4c,_0x4a1b67){return _0x168b4c['define']('AnalyticMetric',attributes,{'tableName':'analytics_metrics','paranoid':![],'indexes':[],'timestamps':!![]});};