fe92c35b9d54f7d081252fc9fa1eab550e7d969c
[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 _0x4fda=['request-promise','path','../../config/environment','./mailQueue.attributes','exports','define','MailQueue','mail_queues','lodash','util','../../config/logger','moment'];(function(_0x261a67,_0x124a66){var _0x1221a=function(_0x3f851c){while(--_0x3f851c){_0x261a67['push'](_0x261a67['shift']());}};_0x1221a(++_0x124a66);}(_0x4fda,0x194));var _0xa4fd=function(_0x4f9b18,_0x2cb5ca){_0x4f9b18=_0x4f9b18-0x0;var _0x29f20c=_0x4fda[_0x4f9b18];return _0x29f20c;};'use strict';var _=require(_0xa4fd('0x0'));var util=require(_0xa4fd('0x1'));var logger=require(_0xa4fd('0x2'))('api');var moment=require(_0xa4fd('0x3'));var BPromise=require('bluebird');var rp=require(_0xa4fd('0x4'));var fs=require('fs');var path=require(_0xa4fd('0x5'));var rimraf=require('rimraf');var config=require(_0xa4fd('0x6'));var attributes=require(_0xa4fd('0x7'));module[_0xa4fd('0x8')]=function(_0x5bff43,_0x3feaa8){return _0x5bff43[_0xa4fd('0x9')](_0xa4fd('0xa'),attributes,{'tableName':_0xa4fd('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};