a08c15948d199f4a964daa5918c25fb61fb971d3
[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 _0x297f=['analytics_metrics','lodash','util','moment','bluebird','request-promise','path','../../config/environment','exports'];(function(_0x443935,_0x3912e0){var _0x5306e2=function(_0x149e18){while(--_0x149e18){_0x443935['push'](_0x443935['shift']());}};_0x5306e2(++_0x3912e0);}(_0x297f,0x1f0));var _0xf297=function(_0x1688c0,_0x405a5e){_0x1688c0=_0x1688c0-0x0;var _0x917e1a=_0x297f[_0x1688c0];return _0x917e1a;};'use strict';var _=require(_0xf297('0x0'));var util=require(_0xf297('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xf297('0x2'));var BPromise=require(_0xf297('0x3'));var rp=require(_0xf297('0x4'));var fs=require('fs');var path=require(_0xf297('0x5'));var rimraf=require('rimraf');var config=require(_0xf297('0x6'));var attributes=require('./analyticMetric.attributes');module[_0xf297('0x7')]=function(_0x353e78,_0x2282eb){return _0x353e78['define']('AnalyticMetric',attributes,{'tableName':_0xf297('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};