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 _0xa246=['bluebird','path','../../config/environment','./squareReport.attributes','exports','define','SquareReport','report_square','uniqueid','project_name','leaveAt','util','moment'];(function(_0x2a4f1c,_0x27433c){var _0x4fefcb=function(_0x2da4cf){while(--_0x2da4cf){_0x2a4f1c['push'](_0x2a4f1c['shift']());}};_0x4fefcb(++_0x27433c);}(_0xa246,0xf5));var _0x6a24=function(_0x383710,_0x1a6a16){_0x383710=_0x383710-0x0;var _0x5a4d8e=_0xa246[_0x383710];return _0x5a4d8e;};'use strict';var _=require('lodash');var util=require(_0x6a24('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x6a24('0x1'));var BPromise=require(_0x6a24('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6a24('0x3'));var rimraf=require('rimraf');var config=require(_0x6a24('0x4'));var attributes=require(_0x6a24('0x5'));module[_0x6a24('0x6')]=function(_0x386525,_0xcae121){return _0x386525[_0x6a24('0x7')](_0x6a24('0x8'),attributes,{'tableName':_0x6a24('0x9'),'paranoid':![],'indexes':[{'name':'uid_pname','fields':[_0x6a24('0xa'),_0x6a24('0xb')]},{'name':_0x6a24('0xc'),'fields':[_0x6a24('0xc')]}],'timestamps':!![]});};