ea8e728415bf1d8dd95cf3db67b812b2903a9ca0
[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 _0xab34=['uniqueid','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','WhatsappTransferReport'];(function(_0x5cd3eb,_0x2a6310){var _0x4b22d0=function(_0x511ad7){while(--_0x511ad7){_0x5cd3eb['push'](_0x5cd3eb['shift']());}};_0x4b22d0(++_0x2a6310);}(_0xab34,0xd1));var _0x4ab3=function(_0x2b8765,_0x59211e){_0x2b8765=_0x2b8765-0x0;var _0x2ce7f9=_0xab34[_0x2b8765];return _0x2ce7f9;};'use strict';var _=require('lodash');var util=require(_0x4ab3('0x0'));var logger=require(_0x4ab3('0x1'))(_0x4ab3('0x2'));var moment=require(_0x4ab3('0x3'));var BPromise=require(_0x4ab3('0x4'));var rp=require(_0x4ab3('0x5'));var fs=require('fs');var path=require(_0x4ab3('0x6'));var rimraf=require(_0x4ab3('0x7'));var config=require(_0x4ab3('0x8'));var attributes=require('./whatsappTransferReport.attributes');module[_0x4ab3('0x9')]=function(_0x31a22c,_0x520742){return _0x31a22c[_0x4ab3('0xa')](_0x4ab3('0xb'),attributes,{'tableName':'report_whatsapp_transfer','paranoid':![],'indexes':[{'name':_0x4ab3('0xc'),'fields':[_0x4ab3('0xc')]}],'timestamps':!![]});};