Built motion from commit (unavailable).|2.5.1
[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 _0x1e4d=['../../config/environment','./analyticMetric.attributes','exports','define','AnalyticMetric','analytics_metrics','lodash','util','../../config/logger','moment','path','rimraf'];(function(_0x27ef2d,_0x352030){var _0x7063cc=function(_0x52ec69){while(--_0x52ec69){_0x27ef2d['push'](_0x27ef2d['shift']());}};_0x7063cc(++_0x352030);}(_0x1e4d,0xc6));var _0xd1e4=function(_0x58ea51,_0x506d1b){_0x58ea51=_0x58ea51-0x0;var _0x2a88ab=_0x1e4d[_0x58ea51];return _0x2a88ab;};'use strict';var _=require(_0xd1e4('0x0'));var util=require(_0xd1e4('0x1'));var logger=require(_0xd1e4('0x2'))('api');var moment=require(_0xd1e4('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xd1e4('0x4'));var rimraf=require(_0xd1e4('0x5'));var config=require(_0xd1e4('0x6'));var attributes=require(_0xd1e4('0x7'));module[_0xd1e4('0x8')]=function(_0x10184e,_0x38f843){return _0x10184e[_0xd1e4('0x9')](_0xd1e4('0xa'),attributes,{'tableName':_0xd1e4('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};