Built motion from commit eddce310.|2.6.12
[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 _0x8b11=['./whatsappQueueReport.attributes','exports','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','util','api','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x18269e,_0x4dd8a4){var _0x2ea826=function(_0xecd7a){while(--_0xecd7a){_0x18269e['push'](_0x18269e['shift']());}};_0x2ea826(++_0x4dd8a4);}(_0x8b11,0x1b2));var _0x18b1=function(_0x158f5a,_0xaacc25){_0x158f5a=_0x158f5a-0x0;var _0xb3722e=_0x8b11[_0x158f5a];return _0xb3722e;};'use strict';var _=require(_0x18b1('0x0'));var util=require(_0x18b1('0x1'));var logger=require('../../config/logger')(_0x18b1('0x2'));var moment=require('moment');var BPromise=require(_0x18b1('0x3'));var rp=require(_0x18b1('0x4'));var fs=require('fs');var path=require(_0x18b1('0x5'));var rimraf=require(_0x18b1('0x6'));var config=require(_0x18b1('0x7'));var attributes=require(_0x18b1('0x8'));module[_0x18b1('0x9')]=function(_0x23ed49,_0xb55882){return _0x23ed49['define'](_0x18b1('0xa'),attributes,{'tableName':_0x18b1('0xb'),'paranoid':![],'indexes':[{'name':_0x18b1('0xc'),'fields':[_0x18b1('0xc')]}],'timestamps':!![]});};