d15bcc609d05fa2de06c1f2784aa598403ed6a5b
[motion2.git] / server / api / mailQueue / mailQueue.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 _0x42f1=['api','moment','path','exports','define','MailQueue','util','../../config/logger'];(function(_0x585ef1,_0x1e3d36){var _0x325fe0=function(_0x3e6af1){while(--_0x3e6af1){_0x585ef1['push'](_0x585ef1['shift']());}};_0x325fe0(++_0x1e3d36);}(_0x42f1,0xae));var _0x142f=function(_0x3262ed,_0x2ddfc7){_0x3262ed=_0x3262ed-0x0;var _0x56e1e2=_0x42f1[_0x3262ed];return _0x56e1e2;};'use strict';var _=require('lodash');var util=require(_0x142f('0x0'));var logger=require(_0x142f('0x1'))(_0x142f('0x2'));var moment=require(_0x142f('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x142f('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./mailQueue.attributes');module[_0x142f('0x5')]=function(_0x3ced4b,_0x235d5d){return _0x3ced4b[_0x142f('0x6')](_0x142f('0x7'),attributes,{'tableName':'mail_queues','paranoid':![],'indexes':[],'timestamps':!![]});};