Built motion from commit b5413ace.|2.6.9
[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 _0xe5f5=['../../config/logger','api','moment','bluebird','path','./whatsappQueueReport.attributes','exports','WhatsappQueueReport','uniqueid','util'];(function(_0x430cc8,_0x44b8bf){var _0x5491c1=function(_0x3b72dd){while(--_0x3b72dd){_0x430cc8['push'](_0x430cc8['shift']());}};_0x5491c1(++_0x44b8bf);}(_0xe5f5,0x171));var _0x5e5f=function(_0x464023,_0x1d48e8){_0x464023=_0x464023-0x0;var _0x24570a=_0xe5f5[_0x464023];return _0x24570a;};'use strict';var _=require('lodash');var util=require(_0x5e5f('0x0'));var logger=require(_0x5e5f('0x1'))(_0x5e5f('0x2'));var moment=require(_0x5e5f('0x3'));var BPromise=require(_0x5e5f('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5e5f('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x5e5f('0x6'));module[_0x5e5f('0x7')]=function(_0x1509c0,_0x4ac45a){return _0x1509c0['define'](_0x5e5f('0x8'),attributes,{'tableName':'report_whatsapp_queue','paranoid':![],'indexes':[{'name':_0x5e5f('0x9'),'fields':[_0x5e5f('0x9')]}],'timestamps':!![]});};