Built motion from commit bab6f49e.|2.6.17
[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 _0x1bce=['define','AnalyticMetric','analytics_metrics','lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./analyticMetric.attributes','exports'];(function(_0x2f32c4,_0x531dc6){var _0x3f3018=function(_0x406998){while(--_0x406998){_0x2f32c4['push'](_0x2f32c4['shift']());}};_0x3f3018(++_0x531dc6);}(_0x1bce,0x73));var _0xe1bc=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x1bce[_0x321bb2];return _0x9c12ed;};'use strict';var _=require(_0xe1bc('0x0'));var util=require(_0xe1bc('0x1'));var logger=require('../../config/logger')(_0xe1bc('0x2'));var moment=require(_0xe1bc('0x3'));var BPromise=require(_0xe1bc('0x4'));var rp=require(_0xe1bc('0x5'));var fs=require('fs');var path=require(_0xe1bc('0x6'));var rimraf=require(_0xe1bc('0x7'));var config=require(_0xe1bc('0x8'));var attributes=require(_0xe1bc('0x9'));module[_0xe1bc('0xa')]=function(_0x57ebd4,_0x51566c){return _0x57ebd4[_0xe1bc('0xb')](_0xe1bc('0xc'),attributes,{'tableName':_0xe1bc('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};