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 _0x8dac=['SquareReport','report_square','uid_pname','project_name','leaveAt','util','../../config/logger','moment','request-promise','path','rimraf','./squareReport.attributes','exports'];(function(_0x15ca1a,_0x30fc82){var _0x507626=function(_0x14c9bc){while(--_0x14c9bc){_0x15ca1a['push'](_0x15ca1a['shift']());}};_0x507626(++_0x30fc82);}(_0x8dac,0x157));var _0xc8da=function(_0x2c0822,_0x6de0ef){_0x2c0822=_0x2c0822-0x0;var _0x7e9725=_0x8dac[_0x2c0822];return _0x7e9725;};'use strict';var _=require('lodash');var util=require(_0xc8da('0x0'));var logger=require(_0xc8da('0x1'))('api');var moment=require(_0xc8da('0x2'));var BPromise=require('bluebird');var rp=require(_0xc8da('0x3'));var fs=require('fs');var path=require(_0xc8da('0x4'));var rimraf=require(_0xc8da('0x5'));var config=require('../../config/environment');var attributes=require(_0xc8da('0x6'));module[_0xc8da('0x7')]=function(_0x2a0f2e,_0x756587){return _0x2a0f2e['define'](_0xc8da('0x8'),attributes,{'tableName':_0xc8da('0x9'),'paranoid':![],'indexes':[{'name':_0xc8da('0xa'),'fields':['uniqueid',_0xc8da('0xb')]},{'name':'leaveAt','fields':[_0xc8da('0xc')]}],'timestamps':!![]});};