Built motion from commit (unavailable).|2.4.18
[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 _0xec1b=['../../config/environment','exports','MailQueue','mail_queues','lodash','util','moment','request-promise','path','rimraf'];(function(_0x309ffc,_0x2c1378){var _0x2a6bc1=function(_0x5bfe11){while(--_0x5bfe11){_0x309ffc['push'](_0x309ffc['shift']());}};_0x2a6bc1(++_0x2c1378);}(_0xec1b,0x7c));var _0xbec1=function(_0x373ba3,_0x265ccc){_0x373ba3=_0x373ba3-0x0;var _0x151f21=_0xec1b[_0x373ba3];return _0x151f21;};'use strict';var _=require(_0xbec1('0x0'));var util=require(_0xbec1('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xbec1('0x2'));var BPromise=require('bluebird');var rp=require(_0xbec1('0x3'));var fs=require('fs');var path=require(_0xbec1('0x4'));var rimraf=require(_0xbec1('0x5'));var config=require(_0xbec1('0x6'));var attributes=require('./mailQueue.attributes');module[_0xbec1('0x7')]=function(_0x223523,_0x2f1719){return _0x223523['define'](_0xbec1('0x8'),attributes,{'tableName':_0xbec1('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};