Built motion from commit d5e4af8c.|2.6.23
[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 _0xc02f=['util','../../config/logger','api','bluebird','request-promise','rimraf','./whatsappQueueReport.attributes','exports','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash'];(function(_0x3e2e2c,_0x36c7d5){var _0x75f42=function(_0x5a5380){while(--_0x5a5380){_0x3e2e2c['push'](_0x3e2e2c['shift']());}};_0x75f42(++_0x36c7d5);}(_0xc02f,0xa7));var _0xfc02=function(_0x4052c7,_0x30a10d){_0x4052c7=_0x4052c7-0x0;var _0x3134c7=_0xc02f[_0x4052c7];return _0x3134c7;};'use strict';var _=require(_0xfc02('0x0'));var util=require(_0xfc02('0x1'));var logger=require(_0xfc02('0x2'))(_0xfc02('0x3'));var moment=require('moment');var BPromise=require(_0xfc02('0x4'));var rp=require(_0xfc02('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xfc02('0x6'));var config=require('../../config/environment');var attributes=require(_0xfc02('0x7'));module[_0xfc02('0x8')]=function(_0xa2953f,_0xd9627b){return _0xa2953f['define'](_0xfc02('0x9'),attributes,{'tableName':_0xfc02('0xa'),'paranoid':![],'indexes':[{'name':_0xfc02('0xb'),'fields':['uniqueid']}],'timestamps':!![]});};