Built motion from commit 6f14c8ba.|2.6.29
[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 _0x9f77=['rimraf','../../config/environment','exports','define','AnalyticFieldReport','analytics_report_fields','lodash','api','moment','path'];(function(_0x4271f1,_0xdbdc80){var _0x1bc9c9=function(_0x463d31){while(--_0x463d31){_0x4271f1['push'](_0x4271f1['shift']());}};_0x1bc9c9(++_0xdbdc80);}(_0x9f77,0x1c8));var _0x79f7=function(_0x10309d,_0x226b6c){_0x10309d=_0x10309d-0x0;var _0x5e1e70=_0x9f77[_0x10309d];return _0x5e1e70;};'use strict';var _=require(_0x79f7('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x79f7('0x1'));var moment=require(_0x79f7('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x79f7('0x3'));var rimraf=require(_0x79f7('0x4'));var config=require(_0x79f7('0x5'));var attributes=require('./analyticFieldReport.attributes');module[_0x79f7('0x6')]=function(_0x1ce1cc,_0x1bc93d){return _0x1ce1cc[_0x79f7('0x7')](_0x79f7('0x8'),attributes,{'tableName':_0x79f7('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};