4084b5884b5aa201a856a9b167338c45e474bc61
[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 _0xc5ce=['util','../../config/logger','api','moment','rimraf','define','AnalyticMetric','analytics_metrics'];(function(_0x55593e,_0x12e784){var _0x470087=function(_0x5f48e2){while(--_0x5f48e2){_0x55593e['push'](_0x55593e['shift']());}};_0x470087(++_0x12e784);}(_0xc5ce,0x158));var _0xec5c=function(_0x5a776b,_0x46f785){_0x5a776b=_0x5a776b-0x0;var _0xbbef59=_0xc5ce[_0x5a776b];return _0xbbef59;};'use strict';var _=require('lodash');var util=require(_0xec5c('0x0'));var logger=require(_0xec5c('0x1'))(_0xec5c('0x2'));var moment=require(_0xec5c('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xec5c('0x4'));var config=require('../../config/environment');var attributes=require('./analyticMetric.attributes');module['exports']=function(_0x1606ec,_0x1c20c9){return _0x1606ec[_0xec5c('0x5')](_0xec5c('0x6'),attributes,{'tableName':_0xec5c('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};