Built motion from commit a134ab58.|2.6.29
[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 _0x2e99=['exports','define','WhatsappTransferReport','uniqueid','../../config/logger','moment','request-promise','rimraf','../../config/environment','./whatsappTransferReport.attributes'];(function(_0x406e2c,_0x51b99d){var _0x3c666e=function(_0x3ac04b){while(--_0x3ac04b){_0x406e2c['push'](_0x406e2c['shift']());}};_0x3c666e(++_0x51b99d);}(_0x2e99,0x1d0));var _0x92e9=function(_0x12333b,_0x126d0a){_0x12333b=_0x12333b-0x0;var _0x4bd435=_0x2e99[_0x12333b];return _0x4bd435;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x92e9('0x0'))('api');var moment=require(_0x92e9('0x1'));var BPromise=require('bluebird');var rp=require(_0x92e9('0x2'));var fs=require('fs');var path=require('path');var rimraf=require(_0x92e9('0x3'));var config=require(_0x92e9('0x4'));var attributes=require(_0x92e9('0x5'));module[_0x92e9('0x6')]=function(_0x556347,_0x46c2d3){return _0x556347[_0x92e9('0x7')](_0x92e9('0x8'),attributes,{'tableName':'report_whatsapp_transfer','paranoid':![],'indexes':[{'name':_0x92e9('0x9'),'fields':['uniqueid']}],'timestamps':!![]});};