f323e21fcfda070393bc883dc69d90993e000536
[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 _0xa773=['api','moment','path','./mailQueue.attributes','exports','MailQueue','mail_queues','lodash','util'];(function(_0x2cd11e,_0x1ad9af){var _0x10f896=function(_0x227f6c){while(--_0x227f6c){_0x2cd11e['push'](_0x2cd11e['shift']());}};_0x10f896(++_0x1ad9af);}(_0xa773,0x178));var _0x3a77=function(_0x4b91e7,_0x35fa8a){_0x4b91e7=_0x4b91e7-0x0;var _0x3b068b=_0xa773[_0x4b91e7];return _0x3b068b;};'use strict';var _=require(_0x3a77('0x0'));var util=require(_0x3a77('0x1'));var logger=require('../../config/logger')(_0x3a77('0x2'));var moment=require(_0x3a77('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x3a77('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x3a77('0x5'));module[_0x3a77('0x6')]=function(_0x1c2522,_0x4fea33){return _0x1c2522['define'](_0x3a77('0x7'),attributes,{'tableName':_0x3a77('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};