Built motion from commit e1760111.|2.6.18
[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 _0x1488=['exports','define','AnalyticMetric','analytics_metrics','lodash','../../config/logger','api','moment','path','../../config/environment','./analyticMetric.attributes'];(function(_0x227d3d,_0x6c752){var _0x3fb2db=function(_0x463e1b){while(--_0x463e1b){_0x227d3d['push'](_0x227d3d['shift']());}};_0x3fb2db(++_0x6c752);}(_0x1488,0x88));var _0x8148=function(_0x3dc538,_0x4f7702){_0x3dc538=_0x3dc538-0x0;var _0x72c2fd=_0x1488[_0x3dc538];return _0x72c2fd;};'use strict';var _=require(_0x8148('0x0'));var util=require('util');var logger=require(_0x8148('0x1'))(_0x8148('0x2'));var moment=require(_0x8148('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x8148('0x4'));var rimraf=require('rimraf');var config=require(_0x8148('0x5'));var attributes=require(_0x8148('0x6'));module[_0x8148('0x7')]=function(_0x153009,_0x173d87){return _0x153009[_0x8148('0x8')](_0x8148('0x9'),attributes,{'tableName':_0x8148('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};