2e3015d0e09512b09a24b58afd47c04daa147f1a
[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 _0x02e0=['lodash','util','api','bluebird','path','rimraf','../../config/environment','./whatsappQueueReport.attributes','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid'];(function(_0x3cc1bf,_0x34455c){var _0x3e867d=function(_0xcf3d43){while(--_0xcf3d43){_0x3cc1bf['push'](_0x3cc1bf['shift']());}};_0x3e867d(++_0x34455c);}(_0x02e0,0x1b0));var _0x002e=function(_0x3b70cf,_0x5b0234){_0x3b70cf=_0x3b70cf-0x0;var _0x149542=_0x02e0[_0x3b70cf];return _0x149542;};'use strict';var _=require(_0x002e('0x0'));var util=require(_0x002e('0x1'));var logger=require('../../config/logger')(_0x002e('0x2'));var moment=require('moment');var BPromise=require(_0x002e('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x002e('0x4'));var rimraf=require(_0x002e('0x5'));var config=require(_0x002e('0x6'));var attributes=require(_0x002e('0x7'));module['exports']=function(_0x22993b,_0x183ebb){return _0x22993b[_0x002e('0x8')](_0x002e('0x9'),attributes,{'tableName':_0x002e('0xa'),'paranoid':![],'indexes':[{'name':_0x002e('0xb'),'fields':[_0x002e('0xb')]}],'timestamps':!![]});};