Built motion from commit (unavailable).|2.5.26
[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 _0xc27d=['moment','bluebird','request-promise','rimraf','./whatsappQueueReport.attributes','exports','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','util','../../config/logger','api'];(function(_0x13b86a,_0x1438a5){var _0x399d5a=function(_0x2e9344){while(--_0x2e9344){_0x13b86a['push'](_0x13b86a['shift']());}};_0x399d5a(++_0x1438a5);}(_0xc27d,0x101));var _0xdc27=function(_0x4a3f51,_0x3d9868){_0x4a3f51=_0x4a3f51-0x0;var _0x4d48d6=_0xc27d[_0x4a3f51];return _0x4d48d6;};'use strict';var _=require('lodash');var util=require(_0xdc27('0x0'));var logger=require(_0xdc27('0x1'))(_0xdc27('0x2'));var moment=require(_0xdc27('0x3'));var BPromise=require(_0xdc27('0x4'));var rp=require(_0xdc27('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xdc27('0x6'));var config=require('../../config/environment');var attributes=require(_0xdc27('0x7'));module[_0xdc27('0x8')]=function(_0xa140a3,_0x48d65c){return _0xa140a3[_0xdc27('0x9')](_0xdc27('0xa'),attributes,{'tableName':_0xdc27('0xb'),'paranoid':![],'indexes':[{'name':_0xdc27('0xc'),'fields':[_0xdc27('0xc')]}],'timestamps':!![]});};