98dbb131b0990d59a09e78cdc35e41688bac87c3
[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 _0xdec8=['util','moment','bluebird','request-promise','path','../../config/environment','define','WhatsappTransferReport','uniqueid','lodash'];(function(_0xdf464,_0x43940c){var _0x2bd0f6=function(_0xf7ac05){while(--_0xf7ac05){_0xdf464['push'](_0xdf464['shift']());}};_0x2bd0f6(++_0x43940c);}(_0xdec8,0xc7));var _0x8dec=function(_0x257642,_0x270a80){_0x257642=_0x257642-0x0;var _0x3d813b=_0xdec8[_0x257642];return _0x3d813b;};'use strict';var _=require(_0x8dec('0x0'));var util=require(_0x8dec('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x8dec('0x2'));var BPromise=require(_0x8dec('0x3'));var rp=require(_0x8dec('0x4'));var fs=require('fs');var path=require(_0x8dec('0x5'));var rimraf=require('rimraf');var config=require(_0x8dec('0x6'));var attributes=require('./whatsappTransferReport.attributes');module['exports']=function(_0x3cb84b,_0x5b743d){return _0x3cb84b[_0x8dec('0x7')](_0x8dec('0x8'),attributes,{'tableName':'report_whatsapp_transfer','paranoid':![],'indexes':[{'name':_0x8dec('0x9'),'fields':['uniqueid']}],'timestamps':!![]});};