Built motion from commit 775e2a94.|2.6.3
[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 _0x4db1=['api','moment','request-promise','rimraf','./whatsappQueueReport.attributes','exports','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash'];(function(_0x39ebe8,_0x316e19){var _0x465497=function(_0x50594e){while(--_0x50594e){_0x39ebe8['push'](_0x39ebe8['shift']());}};_0x465497(++_0x316e19);}(_0x4db1,0x1e3));var _0x14db=function(_0x285800,_0x26765e){_0x285800=_0x285800-0x0;var _0x4b809e=_0x4db1[_0x285800];return _0x4b809e;};'use strict';var _=require(_0x14db('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x14db('0x1'));var moment=require(_0x14db('0x2'));var BPromise=require('bluebird');var rp=require(_0x14db('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x14db('0x4'));var config=require('../../config/environment');var attributes=require(_0x14db('0x5'));module[_0x14db('0x6')]=function(_0x274540,_0x2b2d90){return _0x274540[_0x14db('0x7')](_0x14db('0x8'),attributes,{'tableName':_0x14db('0x9'),'paranoid':![],'indexes':[{'name':_0x14db('0xa'),'fields':[_0x14db('0xa')]}],'timestamps':!![]});};