64df5037cc0904be1a8fa2ca0ac8ff1e87194700
[motion2.git] / server / api / analyticFieldReport / analyticFieldReport.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 _0xaa64=['rimraf','../../config/environment','./analyticFieldReport.attributes','AnalyticFieldReport','analytics_report_fields','util','api','moment','request-promise'];(function(_0xe9c4ea,_0x8bea0b){var _0x516655=function(_0x530870){while(--_0x530870){_0xe9c4ea['push'](_0xe9c4ea['shift']());}};_0x516655(++_0x8bea0b);}(_0xaa64,0x1ac));var _0x4aa6=function(_0x179b68,_0x339d82){_0x179b68=_0x179b68-0x0;var _0x5e6d69=_0xaa64[_0x179b68];return _0x5e6d69;};'use strict';var _=require('lodash');var util=require(_0x4aa6('0x0'));var logger=require('../../config/logger')(_0x4aa6('0x1'));var moment=require(_0x4aa6('0x2'));var BPromise=require('bluebird');var rp=require(_0x4aa6('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4aa6('0x4'));var config=require(_0x4aa6('0x5'));var attributes=require(_0x4aa6('0x6'));module['exports']=function(_0x3b6c9b,_0x3bc5d4){return _0x3b6c9b['define'](_0x4aa6('0x7'),attributes,{'tableName':_0x4aa6('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};