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 _0x6936=['exports','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','util','../../config/logger','request-promise','path','rimraf','../../config/environment'];(function(_0x3db4d0,_0x3837be){var _0x544b4c=function(_0x1af69e){while(--_0x1af69e){_0x3db4d0['push'](_0x3db4d0['shift']());}};_0x544b4c(++_0x3837be);}(_0x6936,0x1f1));var _0x6693=function(_0x5553c0,_0xb5c790){_0x5553c0=_0x5553c0-0x0;var _0x91b68a=_0x6936[_0x5553c0];return _0x91b68a;};'use strict';var _=require(_0x6693('0x0'));var util=require(_0x6693('0x1'));var logger=require(_0x6693('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x6693('0x3'));var fs=require('fs');var path=require(_0x6693('0x4'));var rimraf=require(_0x6693('0x5'));var config=require(_0x6693('0x6'));var attributes=require('./whatsappQueueReport.attributes');module[_0x6693('0x7')]=function(_0x33b382,_0x3f64ee){return _0x33b382[_0x6693('0x8')](_0x6693('0x9'),attributes,{'tableName':_0x6693('0xa'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x6693('0xb')]}],'timestamps':!![]});};