f6d2be6f5faeeb864cc0b9a30f8796ac3fe24700
[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 _0x1265=['bluebird','request-promise','path','rimraf','../../config/environment','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','../../config/logger','api','moment'];(function(_0x3d78d7,_0x44acea){var _0x4b6784=function(_0x284157){while(--_0x284157){_0x3d78d7['push'](_0x3d78d7['shift']());}};_0x4b6784(++_0x44acea);}(_0x1265,0x141));var _0x5126=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0x1265[_0x397e5f];return _0x5302b8;};'use strict';var _=require(_0x5126('0x0'));var util=require('util');var logger=require(_0x5126('0x1'))(_0x5126('0x2'));var moment=require(_0x5126('0x3'));var BPromise=require(_0x5126('0x4'));var rp=require(_0x5126('0x5'));var fs=require('fs');var path=require(_0x5126('0x6'));var rimraf=require(_0x5126('0x7'));var config=require(_0x5126('0x8'));var attributes=require('./whatsappQueueReport.attributes');module['exports']=function(_0x3e2b0,_0x2a0aa4){return _0x3e2b0[_0x5126('0x9')](_0x5126('0xa'),attributes,{'tableName':_0x5126('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x5126('0xc')]}],'timestamps':!![]});};