e45e388da5b77a5865b8b0b8d3a5ea8f74d142af
[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 _0x41bd=['request-promise','../../config/environment','./analyticMetric.attributes','exports','define','AnalyticMetric','analytics_metrics','util','../../config/logger','api','moment','bluebird'];(function(_0x5e36d1,_0x471178){var _0x950b9e=function(_0x1872f3){while(--_0x1872f3){_0x5e36d1['push'](_0x5e36d1['shift']());}};_0x950b9e(++_0x471178);}(_0x41bd,0x103));var _0xd41b=function(_0x54c659,_0x569260){_0x54c659=_0x54c659-0x0;var _0x582102=_0x41bd[_0x54c659];return _0x582102;};'use strict';var _=require('lodash');var util=require(_0xd41b('0x0'));var logger=require(_0xd41b('0x1'))(_0xd41b('0x2'));var moment=require(_0xd41b('0x3'));var BPromise=require(_0xd41b('0x4'));var rp=require(_0xd41b('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xd41b('0x6'));var attributes=require(_0xd41b('0x7'));module[_0xd41b('0x8')]=function(_0x13852e,_0x5f1f61){return _0x13852e[_0xd41b('0x9')](_0xd41b('0xa'),attributes,{'tableName':_0xd41b('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};