b849bdca0b755c38329a7257fc39ad14dfc5db5c
[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 _0x8d0b=['exports','AnalyticMetric','analytics_metrics','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x3af392,_0xe5e91f){var _0x33be9f=function(_0x3e3a59){while(--_0x3e3a59){_0x3af392['push'](_0x3af392['shift']());}};_0x33be9f(++_0xe5e91f);}(_0x8d0b,0x9f));var _0xb8d0=function(_0x38eb23,_0x196e8b){_0x38eb23=_0x38eb23-0x0;var _0x48506a=_0x8d0b[_0x38eb23];return _0x48506a;};'use strict';var _=require(_0xb8d0('0x0'));var util=require(_0xb8d0('0x1'));var logger=require(_0xb8d0('0x2'))(_0xb8d0('0x3'));var moment=require('moment');var BPromise=require(_0xb8d0('0x4'));var rp=require(_0xb8d0('0x5'));var fs=require('fs');var path=require(_0xb8d0('0x6'));var rimraf=require(_0xb8d0('0x7'));var config=require(_0xb8d0('0x8'));var attributes=require('./analyticMetric.attributes');module[_0xb8d0('0x9')]=function(_0x386a59,_0x5de4e4){return _0x386a59['define'](_0xb8d0('0xa'),attributes,{'tableName':_0xb8d0('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};