271e7477bccf843cb6c0ffe2b4928888e7556a8c
[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 _0x2003=['bluebird','path','../../config/environment','./whatsappTransferReport.attributes','exports','define','WhatsappTransferReport','report_whatsapp_transfer','uniqueid','lodash','util','../../config/logger','api','moment'];(function(_0x2757e5,_0x42cfa2){var _0x326d5a=function(_0x146e15){while(--_0x146e15){_0x2757e5['push'](_0x2757e5['shift']());}};_0x326d5a(++_0x42cfa2);}(_0x2003,0x1f3));var _0x3200=function(_0xbe31a4,_0x11ba89){_0xbe31a4=_0xbe31a4-0x0;var _0x15ec28=_0x2003[_0xbe31a4];return _0x15ec28;};'use strict';var _=require(_0x3200('0x0'));var util=require(_0x3200('0x1'));var logger=require(_0x3200('0x2'))(_0x3200('0x3'));var moment=require(_0x3200('0x4'));var BPromise=require(_0x3200('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3200('0x6'));var rimraf=require('rimraf');var config=require(_0x3200('0x7'));var attributes=require(_0x3200('0x8'));module[_0x3200('0x9')]=function(_0x50d637,_0x471dfe){return _0x50d637[_0x3200('0xa')](_0x3200('0xb'),attributes,{'tableName':_0x3200('0xc'),'paranoid':![],'indexes':[{'name':_0x3200('0xd'),'fields':[_0x3200('0xd')]}],'timestamps':!![]});};