82b95f7b6f0a51492c74de6acb119e1085297ac8
[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 _0xd26a=['analytics_metrics','util','../../config/logger','moment','bluebird','path','./analyticMetric.attributes','exports'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xd26a,0x151));var _0xad26=function(_0x3042b0,_0x5117f7){_0x3042b0=_0x3042b0-0x0;var _0x5166d2=_0xd26a[_0x3042b0];return _0x5166d2;};'use strict';var _=require('lodash');var util=require(_0xad26('0x0'));var logger=require(_0xad26('0x1'))('api');var moment=require(_0xad26('0x2'));var BPromise=require(_0xad26('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xad26('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xad26('0x5'));module[_0xad26('0x6')]=function(_0xb1e28b,_0x4ca738){return _0xb1e28b['define']('AnalyticMetric',attributes,{'tableName':_0xad26('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};