Built motion from commit a61a4a20.|2.5.46
[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 _0x72b4=['../../config/environment','exports','define','WhatsappTransferReport','uniqueid','lodash','util','../../config/logger','request-promise','path','rimraf'];(function(_0x4fb1b8,_0x32d98d){var _0x146c71=function(_0x4bb74e){while(--_0x4bb74e){_0x4fb1b8['push'](_0x4fb1b8['shift']());}};_0x146c71(++_0x32d98d);}(_0x72b4,0x10d));var _0x472b=function(_0x67754c,_0x4ee2c1){_0x67754c=_0x67754c-0x0;var _0x1f09ec=_0x72b4[_0x67754c];return _0x1f09ec;};'use strict';var _=require(_0x472b('0x0'));var util=require(_0x472b('0x1'));var logger=require(_0x472b('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x472b('0x3'));var fs=require('fs');var path=require(_0x472b('0x4'));var rimraf=require(_0x472b('0x5'));var config=require(_0x472b('0x6'));var attributes=require('./whatsappTransferReport.attributes');module[_0x472b('0x7')]=function(_0x175b14,_0x3707cc){return _0x175b14[_0x472b('0x8')](_0x472b('0x9'),attributes,{'tableName':'report_whatsapp_transfer','paranoid':![],'indexes':[{'name':_0x472b('0xa'),'fields':[_0x472b('0xa')]}],'timestamps':!![]});};