Built motion from commit 85328c08.|2.5.50
[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 _0xc2cc=['exports','define','WhatsappTransferReport','report_whatsapp_transfer','lodash','../../config/logger','api','bluebird','path','../../config/environment','./whatsappTransferReport.attributes'];(function(_0x32f7d7,_0x54231b){var _0x133d09=function(_0x41a7ab){while(--_0x41a7ab){_0x32f7d7['push'](_0x32f7d7['shift']());}};_0x133d09(++_0x54231b);}(_0xc2cc,0x1b1));var _0xcc2c=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0xc2cc[_0x4565bf];return _0x5610ba;};'use strict';var _=require(_0xcc2c('0x0'));var util=require('util');var logger=require(_0xcc2c('0x1'))(_0xcc2c('0x2'));var moment=require('moment');var BPromise=require(_0xcc2c('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xcc2c('0x4'));var rimraf=require('rimraf');var config=require(_0xcc2c('0x5'));var attributes=require(_0xcc2c('0x6'));module[_0xcc2c('0x7')]=function(_0xb91e3c,_0x215116){return _0xb91e3c[_0xcc2c('0x8')](_0xcc2c('0x9'),attributes,{'tableName':_0xcc2c('0xa'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};