8dd12f2ebfd4fb4519e5112e8921d55565d0bce8
[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 _0xa6e1=['uniqueid','lodash','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./whatsappQueueReport.attributes','exports','define','report_whatsapp_queue'];(function(_0x7d23cd,_0x10393a){var _0x1fa2ed=function(_0x3a52b4){while(--_0x3a52b4){_0x7d23cd['push'](_0x7d23cd['shift']());}};_0x1fa2ed(++_0x10393a);}(_0xa6e1,0xaa));var _0x1a6e=function(_0x4138af,_0x44bc48){_0x4138af=_0x4138af-0x0;var _0x3be61a=_0xa6e1[_0x4138af];return _0x3be61a;};'use strict';var _=require(_0x1a6e('0x0'));var util=require('util');var logger=require(_0x1a6e('0x1'))(_0x1a6e('0x2'));var moment=require(_0x1a6e('0x3'));var BPromise=require(_0x1a6e('0x4'));var rp=require(_0x1a6e('0x5'));var fs=require('fs');var path=require(_0x1a6e('0x6'));var rimraf=require('rimraf');var config=require(_0x1a6e('0x7'));var attributes=require(_0x1a6e('0x8'));module[_0x1a6e('0x9')]=function(_0x3affdd,_0x39e737){return _0x3affdd[_0x1a6e('0xa')]('WhatsappQueueReport',attributes,{'tableName':_0x1a6e('0xb'),'paranoid':![],'indexes':[{'name':_0x1a6e('0xc'),'fields':[_0x1a6e('0xc')]}],'timestamps':!![]});};