Built motion from commit bbec7235.|2.6.20
[motion2.git] / server / api / mailQueueReport / mailQueueReport.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 _0xed63=['report_mail_queue','uniqueid','lodash','../../config/logger','api','bluebird','rimraf','./mailQueueReport.attributes','exports','MailQueueReport'];(function(_0xe92881,_0x22949b){var _0x33f5ef=function(_0x292532){while(--_0x292532){_0xe92881['push'](_0xe92881['shift']());}};_0x33f5ef(++_0x22949b);}(_0xed63,0x138));var _0x3ed6=function(_0x26b211,_0x1e5c0d){_0x26b211=_0x26b211-0x0;var _0x27b7bd=_0xed63[_0x26b211];return _0x27b7bd;};'use strict';var _=require(_0x3ed6('0x0'));var util=require('util');var logger=require(_0x3ed6('0x1'))(_0x3ed6('0x2'));var moment=require('moment');var BPromise=require(_0x3ed6('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x3ed6('0x4'));var config=require('../../config/environment');var attributes=require(_0x3ed6('0x5'));module[_0x3ed6('0x6')]=function(_0xa5fcda,_0x4bdb4a){return _0xa5fcda['define'](_0x3ed6('0x7'),attributes,{'tableName':_0x3ed6('0x8'),'paranoid':![],'indexes':[{'name':_0x3ed6('0x9'),'fields':['uniqueid']}],'timestamps':!![]});};