Built motion from commit (unavailable).|2.5.29
[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 _0x43dd=['rimraf','./analyticMetric.attributes','exports','define','AnalyticMetric','lodash','util','api','moment','bluebird','request-promise','path'];(function(_0x4f8289,_0x5b74a3){var _0xfa84d4=function(_0xb55466){while(--_0xb55466){_0x4f8289['push'](_0x4f8289['shift']());}};_0xfa84d4(++_0x5b74a3);}(_0x43dd,0xdd));var _0xd43d=function(_0xf2206a,_0x2f03d6){_0xf2206a=_0xf2206a-0x0;var _0x4c1b30=_0x43dd[_0xf2206a];return _0x4c1b30;};'use strict';var _=require(_0xd43d('0x0'));var util=require(_0xd43d('0x1'));var logger=require('../../config/logger')(_0xd43d('0x2'));var moment=require(_0xd43d('0x3'));var BPromise=require(_0xd43d('0x4'));var rp=require(_0xd43d('0x5'));var fs=require('fs');var path=require(_0xd43d('0x6'));var rimraf=require(_0xd43d('0x7'));var config=require('../../config/environment');var attributes=require(_0xd43d('0x8'));module[_0xd43d('0x9')]=function(_0x771648,_0x4dca3f){return _0x771648[_0xd43d('0xa')](_0xd43d('0xb'),attributes,{'tableName':'analytics_metrics','paranoid':![],'indexes':[],'timestamps':!![]});};