Built motion from commit (unavailable).|2.5.21
[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 _0xe3f5=['moment','request-promise','path','../../config/environment','./whatsappQueueReport.attributes','exports','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','util','../../config/logger','api'];(function(_0xc6039f,_0x9b10d){var _0x14d9b3=function(_0x558cbd){while(--_0x558cbd){_0xc6039f['push'](_0xc6039f['shift']());}};_0x14d9b3(++_0x9b10d);}(_0xe3f5,0x1ae));var _0x5e3f=function(_0x181ea6,_0x533c24){_0x181ea6=_0x181ea6-0x0;var _0x2904e0=_0xe3f5[_0x181ea6];return _0x2904e0;};'use strict';var _=require(_0x5e3f('0x0'));var util=require(_0x5e3f('0x1'));var logger=require(_0x5e3f('0x2'))(_0x5e3f('0x3'));var moment=require(_0x5e3f('0x4'));var BPromise=require('bluebird');var rp=require(_0x5e3f('0x5'));var fs=require('fs');var path=require(_0x5e3f('0x6'));var rimraf=require('rimraf');var config=require(_0x5e3f('0x7'));var attributes=require(_0x5e3f('0x8'));module[_0x5e3f('0x9')]=function(_0x4390be,_0x2e4fd0){return _0x4390be[_0x5e3f('0xa')](_0x5e3f('0xb'),attributes,{'tableName':_0x5e3f('0xc'),'paranoid':![],'indexes':[{'name':_0x5e3f('0xd'),'fields':['uniqueid']}],'timestamps':!![]});};