1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xe749=['moment','path','rimraf','../../config/environment','./mailQueue.attributes','exports','define','MailQueue','mail_queues','util'];(function(_0x286b76,_0x535f67){var _0x38aa6a=function(_0x158b1f){while(--_0x158b1f){_0x286b76['push'](_0x286b76['shift']());}};_0x38aa6a(++_0x535f67);}(_0xe749,0x18f));var _0x9e74=function(_0x1bc7cd,_0x997927){_0x1bc7cd=_0x1bc7cd-0x0;var _0x4928f7=_0xe749[_0x1bc7cd];return _0x4928f7;};'use strict';var _=require('lodash');var util=require(_0x9e74('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x9e74('0x1'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x9e74('0x2'));var rimraf=require(_0x9e74('0x3'));var config=require(_0x9e74('0x4'));var attributes=require(_0x9e74('0x5'));module[_0x9e74('0x6')]=function(_0x1b373c,_0x2720c6){return _0x1b373c[_0x9e74('0x7')](_0x9e74('0x8'),attributes,{'tableName':_0x9e74('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};