04a17e633579c56f8e77199eba6c1463f1dcc7e8
[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 _0xa7f2=['exports','define','MailQueue','mail_queues','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','./mailQueue.attributes'];(function(_0x4052c0,_0x4271ab){var _0x296f04=function(_0x5373fc){while(--_0x5373fc){_0x4052c0['push'](_0x4052c0['shift']());}};_0x296f04(++_0x4271ab);}(_0xa7f2,0xc7));var _0x2a7f=function(_0x3f889c,_0x1c16af){_0x3f889c=_0x3f889c-0x0;var _0x5edf2a=_0xa7f2[_0x3f889c];return _0x5edf2a;};'use strict';var _=require(_0x2a7f('0x0'));var util=require(_0x2a7f('0x1'));var logger=require(_0x2a7f('0x2'))(_0x2a7f('0x3'));var moment=require(_0x2a7f('0x4'));var BPromise=require(_0x2a7f('0x5'));var rp=require(_0x2a7f('0x6'));var fs=require('fs');var path=require(_0x2a7f('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x2a7f('0x8'));module[_0x2a7f('0x9')]=function(_0x5d0f62,_0x2c0c76){return _0x5d0f62[_0x2a7f('0xa')](_0x2a7f('0xb'),attributes,{'tableName':_0x2a7f('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};