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 _0x310d=['../../config/logger','moment','bluebird','path','rimraf','../../config/environment','exports','define','WhatsappTransferReport','report_whatsapp_transfer','uniqueid','util'];(function(_0x4484f6,_0x58dc67){var _0x3da450=function(_0xcc2a3e){while(--_0xcc2a3e){_0x4484f6['push'](_0x4484f6['shift']());}};_0x3da450(++_0x58dc67);}(_0x310d,0xbf));var _0xd310=function(_0x4e4875,_0xe70360){_0x4e4875=_0x4e4875-0x0;var _0x4f889c=_0x310d[_0x4e4875];return _0x4f889c;};'use strict';var _=require('lodash');var util=require(_0xd310('0x0'));var logger=require(_0xd310('0x1'))('api');var moment=require(_0xd310('0x2'));var BPromise=require(_0xd310('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd310('0x4'));var rimraf=require(_0xd310('0x5'));var config=require(_0xd310('0x6'));var attributes=require('./whatsappTransferReport.attributes');module[_0xd310('0x7')]=function(_0x3332df,_0x2f11be){return _0x3332df[_0xd310('0x8')](_0xd310('0x9'),attributes,{'tableName':_0xd310('0xa'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xd310('0xb')]}],'timestamps':!![]});};