Built motion from commit (unavailable).|2.3.4
[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 _0xfc98=['./analyticMetric.attributes','exports','define','AnalyticMetric','analytics_metrics','util','../../config/logger','api','request-promise'];(function(_0x540133,_0x41783f){var _0x26b6e9=function(_0x10ebe3){while(--_0x10ebe3){_0x540133['push'](_0x540133['shift']());}};_0x26b6e9(++_0x41783f);}(_0xfc98,0x83));var _0x8fc9=function(_0x9c2427,_0x17c865){_0x9c2427=_0x9c2427-0x0;var _0x51984f=_0xfc98[_0x9c2427];return _0x51984f;};'use strict';var _=require('lodash');var util=require(_0x8fc9('0x0'));var logger=require(_0x8fc9('0x1'))(_0x8fc9('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x8fc9('0x3'));var attributes=require(_0x8fc9('0x4'));module[_0x8fc9('0x5')]=function(_0x420ff0,_0x592b1c){return _0x420ff0[_0x8fc9('0x6')](_0x8fc9('0x7'),attributes,{'tableName':_0x8fc9('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};