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 _0x7a57=['api','moment','bluebird','path','rimraf','../../config/environment','exports','define','WhatsappQueueReport','uniqueid','util','../../config/logger'];(function(_0x39a631,_0x30f25f){var _0x47741e=function(_0x5125fa){while(--_0x5125fa){_0x39a631['push'](_0x39a631['shift']());}};_0x47741e(++_0x30f25f);}(_0x7a57,0xe2));var _0x77a5=function(_0x46039b,_0x928fac){_0x46039b=_0x46039b-0x0;var _0x28b56f=_0x7a57[_0x46039b];return _0x28b56f;};'use strict';var _=require('lodash');var util=require(_0x77a5('0x0'));var logger=require(_0x77a5('0x1'))(_0x77a5('0x2'));var moment=require(_0x77a5('0x3'));var BPromise=require(_0x77a5('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x77a5('0x5'));var rimraf=require(_0x77a5('0x6'));var config=require(_0x77a5('0x7'));var attributes=require('./whatsappQueueReport.attributes');module[_0x77a5('0x8')]=function(_0x2d57de,_0x52f443){return _0x2d57de[_0x77a5('0x9')](_0x77a5('0xa'),attributes,{'tableName':'report_whatsapp_queue','paranoid':![],'indexes':[{'name':_0x77a5('0xb'),'fields':[_0x77a5('0xb')]}],'timestamps':!![]});};