032511d156ca4195a5b21146ca456a590aa4ed8c
[motion2.git] / server / api / whatsappQueueReport / whatsappQueueReport.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 _0x7166=['exports','define','report_whatsapp_queue','lodash','util','api','bluebird','rimraf','./whatsappQueueReport.attributes'];(function(_0x23b80e,_0x1ee9c4){var _0x47eb03=function(_0x37b4cd){while(--_0x37b4cd){_0x23b80e['push'](_0x23b80e['shift']());}};_0x47eb03(++_0x1ee9c4);}(_0x7166,0x162));var _0x6716=function(_0x258fb0,_0x5362dc){_0x258fb0=_0x258fb0-0x0;var _0x4d1afe=_0x7166[_0x258fb0];return _0x4d1afe;};'use strict';var _=require(_0x6716('0x0'));var util=require(_0x6716('0x1'));var logger=require('../../config/logger')(_0x6716('0x2'));var moment=require('moment');var BPromise=require(_0x6716('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x6716('0x4'));var config=require('../../config/environment');var attributes=require(_0x6716('0x5'));module[_0x6716('0x6')]=function(_0x5ad0c7,_0x14128a){return _0x5ad0c7[_0x6716('0x7')]('WhatsappQueueReport',attributes,{'tableName':_0x6716('0x8'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};