b163f13a6f061e52b8bee294dfc9169075e55048
[motion2.git] / server / api / userMailQueue / userMailQueue.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 _0x6cb2=['request-promise','path','rimraf','../../config/environment','./userMailQueue.attributes','exports','define','UserMailQueue','user_has_mail_queues','util','../../config/logger','api','moment','bluebird'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0x6cb2,0xe9));var _0x26cb=function(_0xaa1b3e,_0x47d976){_0xaa1b3e=_0xaa1b3e-0x0;var _0x454d7d=_0x6cb2[_0xaa1b3e];return _0x454d7d;};'use strict';var _=require('lodash');var util=require(_0x26cb('0x0'));var logger=require(_0x26cb('0x1'))(_0x26cb('0x2'));var moment=require(_0x26cb('0x3'));var BPromise=require(_0x26cb('0x4'));var rp=require(_0x26cb('0x5'));var fs=require('fs');var path=require(_0x26cb('0x6'));var rimraf=require(_0x26cb('0x7'));var config=require(_0x26cb('0x8'));var attributes=require(_0x26cb('0x9'));module[_0x26cb('0xa')]=function(_0x318cd6,_0x22cc96){return _0x318cd6[_0x26cb('0xb')](_0x26cb('0xc'),attributes,{'tableName':_0x26cb('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};