Built motion from commit d1eab355.|2.6.28
[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 _0x7d0c=['./whatsappTransferReport.attributes','exports','define','WhatsappTransferReport','report_whatsapp_transfer','uniqueid','util','../../config/logger','api','moment','request-promise','path'];(function(_0x2ef47d,_0x556337){var _0x272032=function(_0x172e84){while(--_0x172e84){_0x2ef47d['push'](_0x2ef47d['shift']());}};_0x272032(++_0x556337);}(_0x7d0c,0x10e));var _0xc7d0=function(_0x3b0e03,_0x8a4b0e){_0x3b0e03=_0x3b0e03-0x0;var _0x9b8e49=_0x7d0c[_0x3b0e03];return _0x9b8e49;};'use strict';var _=require('lodash');var util=require(_0xc7d0('0x0'));var logger=require(_0xc7d0('0x1'))(_0xc7d0('0x2'));var moment=require(_0xc7d0('0x3'));var BPromise=require('bluebird');var rp=require(_0xc7d0('0x4'));var fs=require('fs');var path=require(_0xc7d0('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xc7d0('0x6'));module[_0xc7d0('0x7')]=function(_0x3445d1,_0x5ef39a){return _0x3445d1[_0xc7d0('0x8')](_0xc7d0('0x9'),attributes,{'tableName':_0xc7d0('0xa'),'paranoid':![],'indexes':[{'name':_0xc7d0('0xb'),'fields':[_0xc7d0('0xb')]}],'timestamps':!![]});};