b120c701b2957d6d085109a534693ce1dce037f2
[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 _0x7e5f=['./analyticMetric.attributes','exports','define','AnalyticMetric','analytics_metrics','../../config/logger','api','moment','path','rimraf'];(function(_0x2ae752,_0x460f89){var _0x3fc13a=function(_0xc8b81f){while(--_0xc8b81f){_0x2ae752['push'](_0x2ae752['shift']());}};_0x3fc13a(++_0x460f89);}(_0x7e5f,0x1b3));var _0xf7e5=function(_0x4f1da5,_0x4ced17){_0x4f1da5=_0x4f1da5-0x0;var _0xe972a8=_0x7e5f[_0x4f1da5];return _0xe972a8;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xf7e5('0x0'))(_0xf7e5('0x1'));var moment=require(_0xf7e5('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xf7e5('0x3'));var rimraf=require(_0xf7e5('0x4'));var config=require('../../config/environment');var attributes=require(_0xf7e5('0x5'));module[_0xf7e5('0x6')]=function(_0x4d5c56,_0x4d7aac){return _0x4d5c56[_0xf7e5('0x7')](_0xf7e5('0x8'),attributes,{'tableName':_0xf7e5('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};