eb99da744eaad8d0a3b3b811ee673b1792675f0d
[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 _0xc92f=['../../config/environment','define','analytics_metrics','lodash','util','api','moment','bluebird','path','rimraf'];(function(_0x3bd963,_0x2b3b4a){var _0x536edf=function(_0x466b64){while(--_0x466b64){_0x3bd963['push'](_0x3bd963['shift']());}};_0x536edf(++_0x2b3b4a);}(_0xc92f,0xf3));var _0xfc92=function(_0xcbe5,_0x2f7d51){_0xcbe5=_0xcbe5-0x0;var _0x41957d=_0xc92f[_0xcbe5];return _0x41957d;};'use strict';var _=require(_0xfc92('0x0'));var util=require(_0xfc92('0x1'));var logger=require('../../config/logger')(_0xfc92('0x2'));var moment=require(_0xfc92('0x3'));var BPromise=require(_0xfc92('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xfc92('0x5'));var rimraf=require(_0xfc92('0x6'));var config=require(_0xfc92('0x7'));var attributes=require('./analyticMetric.attributes');module['exports']=function(_0x930bab,_0x47abee){return _0x930bab[_0xfc92('0x8')]('AnalyticMetric',attributes,{'tableName':_0xfc92('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};