Built motion from commit 1fa89557.|2.6.10
[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 _0xdfe7=['util','../../config/logger','moment','bluebird','request-promise','path','../../config/environment','./analyticMetric.attributes','define','AnalyticMetric'];(function(_0x1c97c8,_0x28d564){var _0x2c096d=function(_0x1bf3ec){while(--_0x1bf3ec){_0x1c97c8['push'](_0x1c97c8['shift']());}};_0x2c096d(++_0x28d564);}(_0xdfe7,0xc8));var _0x7dfe=function(_0x4cd20d,_0x344b37){_0x4cd20d=_0x4cd20d-0x0;var _0x4ff45d=_0xdfe7[_0x4cd20d];return _0x4ff45d;};'use strict';var _=require('lodash');var util=require(_0x7dfe('0x0'));var logger=require(_0x7dfe('0x1'))('api');var moment=require(_0x7dfe('0x2'));var BPromise=require(_0x7dfe('0x3'));var rp=require(_0x7dfe('0x4'));var fs=require('fs');var path=require(_0x7dfe('0x5'));var rimraf=require('rimraf');var config=require(_0x7dfe('0x6'));var attributes=require(_0x7dfe('0x7'));module['exports']=function(_0x262561,_0x3d8220){return _0x262561[_0x7dfe('0x8')](_0x7dfe('0x9'),attributes,{'tableName':'analytics_metrics','paranoid':![],'indexes':[],'timestamps':!![]});};