94cffef44df650d4a6595b3ff13392e7524a3f9f
[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 _0x24c0=['../../config/environment','./whatsappQueueReport.attributes','exports','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','util','../../config/logger','api','request-promise'];(function(_0x295e3e,_0x30b417){var _0x4c8a9c=function(_0x2f4ef1){while(--_0x2f4ef1){_0x295e3e['push'](_0x295e3e['shift']());}};_0x4c8a9c(++_0x30b417);}(_0x24c0,0x103));var _0x024c=function(_0x5605b6,_0x2f000d){_0x5605b6=_0x5605b6-0x0;var _0x18fa44=_0x24c0[_0x5605b6];return _0x18fa44;};'use strict';var _=require(_0x024c('0x0'));var util=require(_0x024c('0x1'));var logger=require(_0x024c('0x2'))(_0x024c('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x024c('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x024c('0x5'));var attributes=require(_0x024c('0x6'));module[_0x024c('0x7')]=function(_0x4ee73e,_0x73c897){return _0x4ee73e[_0x024c('0x8')](_0x024c('0x9'),attributes,{'tableName':_0x024c('0xa'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x024c('0xb')]}],'timestamps':!![]});};