d737313504faf82613d7377f31d63ac615f0590d
[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 _0xdf4e=['define','AnalyticMetric','util','api','moment','bluebird','rimraf','../../config/environment','./analyticMetric.attributes'];(function(_0x4cbd4b,_0x1fb536){var _0x5d4e43=function(_0x25b8c5){while(--_0x25b8c5){_0x4cbd4b['push'](_0x4cbd4b['shift']());}};_0x5d4e43(++_0x1fb536);}(_0xdf4e,0xec));var _0xedf4=function(_0x44474f,_0x431580){_0x44474f=_0x44474f-0x0;var _0x427d97=_0xdf4e[_0x44474f];return _0x427d97;};'use strict';var _=require('lodash');var util=require(_0xedf4('0x0'));var logger=require('../../config/logger')(_0xedf4('0x1'));var moment=require(_0xedf4('0x2'));var BPromise=require(_0xedf4('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xedf4('0x4'));var config=require(_0xedf4('0x5'));var attributes=require(_0xedf4('0x6'));module['exports']=function(_0x5db37a,_0x24db24){return _0x5db37a[_0xedf4('0x7')](_0xedf4('0x8'),attributes,{'tableName':'analytics_metrics','paranoid':![],'indexes':[],'timestamps':!![]});};