6322473e811daad2091277eb1f74dd8bedb5d85c
[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 _0xd0e0=['request-promise','path','rimraf','./whatsappTransferReport.attributes','exports','define','WhatsappTransferReport','uniqueid','lodash','util','../../config/logger','moment'];(function(_0x2d7836,_0x5a5412){var _0x491179=function(_0xaafd3){while(--_0xaafd3){_0x2d7836['push'](_0x2d7836['shift']());}};_0x491179(++_0x5a5412);}(_0xd0e0,0xf8));var _0x0d0e=function(_0xef3bf0,_0x2eceee){_0xef3bf0=_0xef3bf0-0x0;var _0x469220=_0xd0e0[_0xef3bf0];return _0x469220;};'use strict';var _=require(_0x0d0e('0x0'));var util=require(_0x0d0e('0x1'));var logger=require(_0x0d0e('0x2'))('api');var moment=require(_0x0d0e('0x3'));var BPromise=require('bluebird');var rp=require(_0x0d0e('0x4'));var fs=require('fs');var path=require(_0x0d0e('0x5'));var rimraf=require(_0x0d0e('0x6'));var config=require('../../config/environment');var attributes=require(_0x0d0e('0x7'));module[_0x0d0e('0x8')]=function(_0x2a4b8b,_0x1c2dac){return _0x2a4b8b[_0x0d0e('0x9')](_0x0d0e('0xa'),attributes,{'tableName':'report_whatsapp_transfer','paranoid':![],'indexes':[{'name':_0x0d0e('0xb'),'fields':['uniqueid']}],'timestamps':!![]});};