Built motion from commit 5ba5b610.|2.5.33
[motion2.git] / server / api / whatsappTransferReport / whatsappTransferReport.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xdc2f=['path','rimraf','exports','define','WhatsappTransferReport','report_whatsapp_transfer','uniqueid','util','../../config/logger','api','moment','request-promise'];(function(_0x44deb4,_0x5bf702){var _0x2361cb=function(_0x2b8e13){while(--_0x2b8e13){_0x44deb4['push'](_0x44deb4['shift']());}};_0x2361cb(++_0x5bf702);}(_0xdc2f,0xeb));var _0xfdc2=function(_0x58dc25,_0x49b9d5){_0x58dc25=_0x58dc25-0x0;var _0x21b0a7=_0xdc2f[_0x58dc25];return _0x21b0a7;};'use strict';var _=require('lodash');var util=require(_0xfdc2('0x0'));var logger=require(_0xfdc2('0x1'))(_0xfdc2('0x2'));var moment=require(_0xfdc2('0x3'));var BPromise=require('bluebird');var rp=require(_0xfdc2('0x4'));var fs=require('fs');var path=require(_0xfdc2('0x5'));var rimraf=require(_0xfdc2('0x6'));var config=require('../../config/environment');var attributes=require('./whatsappTransferReport.attributes');module[_0xfdc2('0x7')]=function(_0x92c28b,_0x2b9ed5){return _0x92c28b[_0xfdc2('0x8')](_0xfdc2('0x9'),attributes,{'tableName':_0xfdc2('0xa'),'paranoid':![],'indexes':[{'name':_0xfdc2('0xb'),'fields':[_0xfdc2('0xb')]}],'timestamps':!![]});};