f526050db9d6d5227dc21036f8aab9eb0d2795eb
[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 _0xf4de=['define','WhatsappTransferReport','report_whatsapp_transfer','uniqueid','lodash','util','../../config/logger','api','bluebird','path','./whatsappTransferReport.attributes','exports'];(function(_0x14424a,_0x5b9587){var _0x2bd2f0=function(_0x3042c7){while(--_0x3042c7){_0x14424a['push'](_0x14424a['shift']());}};_0x2bd2f0(++_0x5b9587);}(_0xf4de,0x148));var _0xef4d=function(_0x2bb760,_0x50e213){_0x2bb760=_0x2bb760-0x0;var _0x27b0d2=_0xf4de[_0x2bb760];return _0x27b0d2;};'use strict';var _=require(_0xef4d('0x0'));var util=require(_0xef4d('0x1'));var logger=require(_0xef4d('0x2'))(_0xef4d('0x3'));var moment=require('moment');var BPromise=require(_0xef4d('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xef4d('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xef4d('0x6'));module[_0xef4d('0x7')]=function(_0x47f052,_0x5e1d3d){return _0x47f052[_0xef4d('0x8')](_0xef4d('0x9'),attributes,{'tableName':_0xef4d('0xa'),'paranoid':![],'indexes':[{'name':_0xef4d('0xb'),'fields':[_0xef4d('0xb')]}],'timestamps':!![]});};