d65ce349dd9013d39e7d22bf8a398fbd76949f60
[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 _0xc10f=['rimraf','../../config/environment','exports','AnalyticMetric','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x3dc9bc,_0x77bc87){var _0x23a813=function(_0x166ab9){while(--_0x166ab9){_0x3dc9bc['push'](_0x3dc9bc['shift']());}};_0x23a813(++_0x77bc87);}(_0xc10f,0x124));var _0xfc10=function(_0x346b28,_0x5e0181){_0x346b28=_0x346b28-0x0;var _0x406ddd=_0xc10f[_0x346b28];return _0x406ddd;};'use strict';var _=require(_0xfc10('0x0'));var util=require(_0xfc10('0x1'));var logger=require(_0xfc10('0x2'))(_0xfc10('0x3'));var moment=require(_0xfc10('0x4'));var BPromise=require(_0xfc10('0x5'));var rp=require(_0xfc10('0x6'));var fs=require('fs');var path=require(_0xfc10('0x7'));var rimraf=require(_0xfc10('0x8'));var config=require(_0xfc10('0x9'));var attributes=require('./analyticMetric.attributes');module[_0xfc10('0xa')]=function(_0x7dc590,_0x5ed8a9){return _0x7dc590['define'](_0xfc10('0xb'),attributes,{'tableName':'analytics_metrics','paranoid':![],'indexes':[],'timestamps':!![]});};