0ae6ab6d2cdb04cd74d3a64e9aae9aa000736eeb
[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 _0x2b4d=['path','rimraf','../../config/environment','exports','define','WhatsappTransferReport','uniqueid','util','../../config/logger','api'];(function(_0x527e35,_0x13293c){var _0x49a7a0=function(_0xb432b6){while(--_0xb432b6){_0x527e35['push'](_0x527e35['shift']());}};_0x49a7a0(++_0x13293c);}(_0x2b4d,0x6b));var _0xd2b4=function(_0x594e11,_0x28f652){_0x594e11=_0x594e11-0x0;var _0x5418ad=_0x2b4d[_0x594e11];return _0x5418ad;};'use strict';var _=require('lodash');var util=require(_0xd2b4('0x0'));var logger=require(_0xd2b4('0x1'))(_0xd2b4('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xd2b4('0x3'));var rimraf=require(_0xd2b4('0x4'));var config=require(_0xd2b4('0x5'));var attributes=require('./whatsappTransferReport.attributes');module[_0xd2b4('0x6')]=function(_0x34e906,_0x3829c2){return _0x34e906[_0xd2b4('0x7')](_0xd2b4('0x8'),attributes,{'tableName':'report_whatsapp_transfer','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xd2b4('0x9')]}],'timestamps':!![]});};