8bc73573c27d064c101c06a4492f5358830bbfd7
[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 _0xed08=['./analyticMetric.attributes','exports','define','AnalyticMetric','analytics_metrics','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0xd701c6,_0x20625a){var _0x44092b=function(_0x45b518){while(--_0x45b518){_0xd701c6['push'](_0xd701c6['shift']());}};_0x44092b(++_0x20625a);}(_0xed08,0x67));var _0x8ed0=function(_0x474d0f,_0x3f1296){_0x474d0f=_0x474d0f-0x0;var _0x4b5535=_0xed08[_0x474d0f];return _0x4b5535;};'use strict';var _=require('lodash');var util=require(_0x8ed0('0x0'));var logger=require(_0x8ed0('0x1'))(_0x8ed0('0x2'));var moment=require(_0x8ed0('0x3'));var BPromise=require(_0x8ed0('0x4'));var rp=require(_0x8ed0('0x5'));var fs=require('fs');var path=require(_0x8ed0('0x6'));var rimraf=require(_0x8ed0('0x7'));var config=require(_0x8ed0('0x8'));var attributes=require(_0x8ed0('0x9'));module[_0x8ed0('0xa')]=function(_0x43ca60,_0x5c1343){return _0x43ca60[_0x8ed0('0xb')](_0x8ed0('0xc'),attributes,{'tableName':_0x8ed0('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};