1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x4e47=['path','rimraf','../../config/environment','exports','define','SquareReport','leaveAt','lodash','util','api','moment','bluebird','request-promise'];(function(_0x62be23,_0x5d32f7){var _0x5a1c24=function(_0x1281c2){while(--_0x1281c2){_0x62be23['push'](_0x62be23['shift']());}};_0x5a1c24(++_0x5d32f7);}(_0x4e47,0xb0));var _0x74e4=function(_0x4cb12c,_0x5a2001){_0x4cb12c=_0x4cb12c-0x0;var _0x4e780a=_0x4e47[_0x4cb12c];return _0x4e780a;};'use strict';var _=require(_0x74e4('0x0'));var util=require(_0x74e4('0x1'));var logger=require('../../config/logger')(_0x74e4('0x2'));var moment=require(_0x74e4('0x3'));var BPromise=require(_0x74e4('0x4'));var rp=require(_0x74e4('0x5'));var fs=require('fs');var path=require(_0x74e4('0x6'));var rimraf=require(_0x74e4('0x7'));var config=require(_0x74e4('0x8'));var attributes=require('./squareReport.attributes');module[_0x74e4('0x9')]=function(_0xe32ed,_0x3a9573){return _0xe32ed[_0x74e4('0xa')](_0x74e4('0xb'),attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':'uid_pname','fields':['uniqueid','project_name']},{'name':_0x74e4('0xc'),'fields':[_0x74e4('0xc')]}],'timestamps':!![]});};