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 _0xbfeb=['path','rimraf','../../config/environment','exports','define','report_whatsapp_queue','lodash','util','../../config/logger','request-promise'];(function(_0x3108f8,_0x1320d8){var _0x530154=function(_0x488ccd){while(--_0x488ccd){_0x3108f8['push'](_0x3108f8['shift']());}};_0x530154(++_0x1320d8);}(_0xbfeb,0x1a0));var _0xbbfe=function(_0x598921,_0x408a5b){_0x598921=_0x598921-0x0;var _0x46a3a2=_0xbfeb[_0x598921];return _0x46a3a2;};'use strict';var _=require(_0xbbfe('0x0'));var util=require(_0xbbfe('0x1'));var logger=require(_0xbbfe('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xbbfe('0x3'));var fs=require('fs');var path=require(_0xbbfe('0x4'));var rimraf=require(_0xbbfe('0x5'));var config=require(_0xbbfe('0x6'));var attributes=require('./whatsappQueueReport.attributes');module[_0xbbfe('0x7')]=function(_0x5d4e28,_0x2ccd6a){return _0x5d4e28[_0xbbfe('0x8')]('WhatsappQueueReport',attributes,{'tableName':_0xbbfe('0x9'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};