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 _0x1e0b=['request-promise','path','../../config/environment','exports','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','util','../../config/logger'];(function(_0x5b47d9,_0x1327ce){var _0x4151f0=function(_0x24bda2){while(--_0x24bda2){_0x5b47d9['push'](_0x5b47d9['shift']());}};_0x4151f0(++_0x1327ce);}(_0x1e0b,0x1d4));var _0xb1e0=function(_0x296923,_0x4adaed){_0x296923=_0x296923-0x0;var _0x29af70=_0x1e0b[_0x296923];return _0x29af70;};'use strict';var _=require('lodash');var util=require(_0xb1e0('0x0'));var logger=require(_0xb1e0('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xb1e0('0x2'));var fs=require('fs');var path=require(_0xb1e0('0x3'));var rimraf=require('rimraf');var config=require(_0xb1e0('0x4'));var attributes=require('./whatsappQueueReport.attributes');module[_0xb1e0('0x5')]=function(_0x192669,_0xd58781){return _0x192669[_0xb1e0('0x6')](_0xb1e0('0x7'),attributes,{'tableName':_0xb1e0('0x8'),'paranoid':![],'indexes':[{'name':_0xb1e0('0x9'),'fields':[_0xb1e0('0x9')]}],'timestamps':!![]});};