Built motion from commit 639a1a7f.|2.6.19
[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 _0xef6c=['request-promise','path','rimraf','./whatsappQueueReport.attributes','exports','define','WhatsappQueueReport','uniqueid','lodash','../../config/logger','api','moment'];(function(_0x8df2bf,_0x42b29b){var _0x267fc3=function(_0x334709){while(--_0x334709){_0x8df2bf['push'](_0x8df2bf['shift']());}};_0x267fc3(++_0x42b29b);}(_0xef6c,0x1a0));var _0xcef6=function(_0x3ccdf8,_0x584ceb){_0x3ccdf8=_0x3ccdf8-0x0;var _0x243dab=_0xef6c[_0x3ccdf8];return _0x243dab;};'use strict';var _=require(_0xcef6('0x0'));var util=require('util');var logger=require(_0xcef6('0x1'))(_0xcef6('0x2'));var moment=require(_0xcef6('0x3'));var BPromise=require('bluebird');var rp=require(_0xcef6('0x4'));var fs=require('fs');var path=require(_0xcef6('0x5'));var rimraf=require(_0xcef6('0x6'));var config=require('../../config/environment');var attributes=require(_0xcef6('0x7'));module[_0xcef6('0x8')]=function(_0x4d4968,_0x3e6e5a){return _0x4d4968[_0xcef6('0x9')](_0xcef6('0xa'),attributes,{'tableName':'report_whatsapp_queue','paranoid':![],'indexes':[{'name':_0xcef6('0xb'),'fields':['uniqueid']}],'timestamps':!![]});};