218948ed57eac6bf76a670eabdc09e6c431effcf
[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 _0x91f1=['rimraf','../../config/environment','./analyticMetric.attributes','exports','define','util','../../config/logger','bluebird'];(function(_0x54aaba,_0xbe9108){var _0x29a29a=function(_0x88185){while(--_0x88185){_0x54aaba['push'](_0x54aaba['shift']());}};_0x29a29a(++_0xbe9108);}(_0x91f1,0x75));var _0x191f=function(_0x2ed40d,_0x78e9cc){_0x2ed40d=_0x2ed40d-0x0;var _0x40cdab=_0x91f1[_0x2ed40d];return _0x40cdab;};'use strict';var _=require('lodash');var util=require(_0x191f('0x0'));var logger=require(_0x191f('0x1'))('api');var moment=require('moment');var BPromise=require(_0x191f('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x191f('0x3'));var config=require(_0x191f('0x4'));var attributes=require(_0x191f('0x5'));module[_0x191f('0x6')]=function(_0x4bc9ea,_0x36b319){return _0x4bc9ea[_0x191f('0x7')]('AnalyticMetric',attributes,{'tableName':'analytics_metrics','paranoid':![],'indexes':[],'timestamps':!![]});};