511e995bdec421c859953aa7a99f2751bf2eef9e
[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 _0x50e1=['util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./whatsappTransferReport.attributes','exports','define','WhatsappTransferReport','report_whatsapp_transfer','uniqueid'];(function(_0xb3b179,_0x578dbd){var _0x62abcd=function(_0x3004ae){while(--_0x3004ae){_0xb3b179['push'](_0xb3b179['shift']());}};_0x62abcd(++_0x578dbd);}(_0x50e1,0x15e));var _0x150e=function(_0x1b8901,_0x4a8d0c){_0x1b8901=_0x1b8901-0x0;var _0x1d14a5=_0x50e1[_0x1b8901];return _0x1d14a5;};'use strict';var _=require('lodash');var util=require(_0x150e('0x0'));var logger=require(_0x150e('0x1'))(_0x150e('0x2'));var moment=require('moment');var BPromise=require(_0x150e('0x3'));var rp=require(_0x150e('0x4'));var fs=require('fs');var path=require(_0x150e('0x5'));var rimraf=require(_0x150e('0x6'));var config=require(_0x150e('0x7'));var attributes=require(_0x150e('0x8'));module[_0x150e('0x9')]=function(_0x1c9ec1,_0x5d4625){return _0x1c9ec1[_0x150e('0xa')](_0x150e('0xb'),attributes,{'tableName':_0x150e('0xc'),'paranoid':![],'indexes':[{'name':_0x150e('0xd'),'fields':[_0x150e('0xd')]}],'timestamps':!![]});};