85098b0943b2461b112bf8cf055faf8ce54d8728
[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 _0x4798=['../../config/environment','./whatsappTransferReport.attributes','define','WhatsappTransferReport','report_whatsapp_transfer','uniqueid','lodash','util','../../config/logger','path','rimraf'];(function(_0x1ac42c,_0xa4848d){var _0x4aa8e4=function(_0x3aef3d){while(--_0x3aef3d){_0x1ac42c['push'](_0x1ac42c['shift']());}};_0x4aa8e4(++_0xa4848d);}(_0x4798,0x1a8));var _0x8479=function(_0x41aff9,_0x396c2d){_0x41aff9=_0x41aff9-0x0;var _0x5b0773=_0x4798[_0x41aff9];return _0x5b0773;};'use strict';var _=require(_0x8479('0x0'));var util=require(_0x8479('0x1'));var logger=require(_0x8479('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x8479('0x3'));var rimraf=require(_0x8479('0x4'));var config=require(_0x8479('0x5'));var attributes=require(_0x8479('0x6'));module['exports']=function(_0x232185,_0x41caa0){return _0x232185[_0x8479('0x7')](_0x8479('0x8'),attributes,{'tableName':_0x8479('0x9'),'paranoid':![],'indexes':[{'name':_0x8479('0xa'),'fields':[_0x8479('0xa')]}],'timestamps':!![]});};