Built motion from commit b0a9a629.|2.6.33
[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 _0x08cb=['path','rimraf','./whatsappTransferReport.attributes','exports','define','WhatsappTransferReport','report_whatsapp_transfer','uniqueid','lodash','../../config/logger','api','moment','request-promise'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x08cb,0x167));var _0xb08c=function(_0x390e09,_0x359c18){_0x390e09=_0x390e09-0x0;var _0x586d4f=_0x08cb[_0x390e09];return _0x586d4f;};'use strict';var _=require(_0xb08c('0x0'));var util=require('util');var logger=require(_0xb08c('0x1'))(_0xb08c('0x2'));var moment=require(_0xb08c('0x3'));var BPromise=require('bluebird');var rp=require(_0xb08c('0x4'));var fs=require('fs');var path=require(_0xb08c('0x5'));var rimraf=require(_0xb08c('0x6'));var config=require('../../config/environment');var attributes=require(_0xb08c('0x7'));module[_0xb08c('0x8')]=function(_0x5c39ef,_0x5ee93e){return _0x5c39ef[_0xb08c('0x9')](_0xb08c('0xa'),attributes,{'tableName':_0xb08c('0xb'),'paranoid':![],'indexes':[{'name':_0xb08c('0xc'),'fields':[_0xb08c('0xc')]}],'timestamps':!![]});};