70f790bff2c1122ebb41f8f212af330596026247
[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 _0xe42b=['./whatsappTransferReport.attributes','exports','define','WhatsappTransferReport','report_whatsapp_transfer','uniqueid','api','bluebird','path'];(function(_0x17b6e3,_0x4522ed){var _0x3906f3=function(_0x430f87){while(--_0x430f87){_0x17b6e3['push'](_0x17b6e3['shift']());}};_0x3906f3(++_0x4522ed);}(_0xe42b,0x1da));var _0xbe42=function(_0xf168d3,_0x43dcfc){_0xf168d3=_0xf168d3-0x0;var _0x17fb54=_0xe42b[_0xf168d3];return _0x17fb54;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xbe42('0x0'));var moment=require('moment');var BPromise=require(_0xbe42('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbe42('0x2'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xbe42('0x3'));module[_0xbe42('0x4')]=function(_0x2081e4,_0x1fac64){return _0x2081e4[_0xbe42('0x5')](_0xbe42('0x6'),attributes,{'tableName':_0xbe42('0x7'),'paranoid':![],'indexes':[{'name':_0xbe42('0x8'),'fields':[_0xbe42('0x8')]}],'timestamps':!![]});};