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 _0xfff5=['bluebird','request-promise','path','../../config/environment','./squareReport.attributes','exports','define','SquareReport','report_square','uniqueid','project_name','leaveAt','lodash','util','../../config/logger','moment'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0xfff5,0xcc));var _0x5fff=function(_0x40ea14,_0x160f48){_0x40ea14=_0x40ea14-0x0;var _0x15a2cb=_0xfff5[_0x40ea14];return _0x15a2cb;};'use strict';var _=require(_0x5fff('0x0'));var util=require(_0x5fff('0x1'));var logger=require(_0x5fff('0x2'))('api');var moment=require(_0x5fff('0x3'));var BPromise=require(_0x5fff('0x4'));var rp=require(_0x5fff('0x5'));var fs=require('fs');var path=require(_0x5fff('0x6'));var rimraf=require('rimraf');var config=require(_0x5fff('0x7'));var attributes=require(_0x5fff('0x8'));module[_0x5fff('0x9')]=function(_0xfbb78e,_0x5673b4){return _0xfbb78e[_0x5fff('0xa')](_0x5fff('0xb'),attributes,{'tableName':_0x5fff('0xc'),'paranoid':![],'indexes':[{'name':'uid_pname','fields':[_0x5fff('0xd'),_0x5fff('0xe')]},{'name':'leaveAt','fields':[_0x5fff('0xf')]}],'timestamps':!![]});};