Built motion from commit 994c64e1.|2.6.1
[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 _0xa5b9=['moment','bluebird','rimraf','../../config/environment','exports','define','AnalyticFieldReport','analytics_report_fields','lodash','util','api'];(function(_0x32b542,_0x4512fa){var _0x554d54=function(_0x35cdfc){while(--_0x35cdfc){_0x32b542['push'](_0x32b542['shift']());}};_0x554d54(++_0x4512fa);}(_0xa5b9,0xa2));var _0x9a5b=function(_0x4e5c73,_0x37a50d){_0x4e5c73=_0x4e5c73-0x0;var _0x55f234=_0xa5b9[_0x4e5c73];return _0x55f234;};'use strict';var _=require(_0x9a5b('0x0'));var util=require(_0x9a5b('0x1'));var logger=require('../../config/logger')(_0x9a5b('0x2'));var moment=require(_0x9a5b('0x3'));var BPromise=require(_0x9a5b('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x9a5b('0x5'));var config=require(_0x9a5b('0x6'));var attributes=require('./analyticFieldReport.attributes');module[_0x9a5b('0x7')]=function(_0xb5e944,_0x43630c){return _0xb5e944[_0x9a5b('0x8')](_0x9a5b('0x9'),attributes,{'tableName':_0x9a5b('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};