Built motion from commit 5ae82ce5.|2.6.7
[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 _0xa9e4=['rimraf','../../config/environment','exports','define','uniqueid','lodash','util','../../config/logger','api','moment','bluebird','path'];(function(_0x969ba4,_0x3d80f9){var _0xebf7bd=function(_0x3d891d){while(--_0x3d891d){_0x969ba4['push'](_0x969ba4['shift']());}};_0xebf7bd(++_0x3d80f9);}(_0xa9e4,0x89));var _0x4a9e=function(_0x3880ed,_0x27d5af){_0x3880ed=_0x3880ed-0x0;var _0x43ae75=_0xa9e4[_0x3880ed];return _0x43ae75;};'use strict';var _=require(_0x4a9e('0x0'));var util=require(_0x4a9e('0x1'));var logger=require(_0x4a9e('0x2'))(_0x4a9e('0x3'));var moment=require(_0x4a9e('0x4'));var BPromise=require(_0x4a9e('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4a9e('0x6'));var rimraf=require(_0x4a9e('0x7'));var config=require(_0x4a9e('0x8'));var attributes=require('./mailQueueReport.attributes');module[_0x4a9e('0x9')]=function(_0xa541ce,_0x2cb9a4){return _0xa541ce[_0x4a9e('0xa')]('MailQueueReport',attributes,{'tableName':'report_mail_queue','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x4a9e('0xb')]}],'timestamps':!![]});};