Built motion from commit 25580385.|2.6.2
[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 _0xbc4c=['moment','bluebird','request-promise','path','../../config/environment','./userMailQueue.attributes','exports','UserMailQueue','util','api'];(function(_0x2df507,_0x553862){var _0x1f7167=function(_0x11319e){while(--_0x11319e){_0x2df507['push'](_0x2df507['shift']());}};_0x1f7167(++_0x553862);}(_0xbc4c,0xf8));var _0xcbc4=function(_0x6e1239,_0x3562ac){_0x6e1239=_0x6e1239-0x0;var _0x418150=_0xbc4c[_0x6e1239];return _0x418150;};'use strict';var _=require('lodash');var util=require(_0xcbc4('0x0'));var logger=require('../../config/logger')(_0xcbc4('0x1'));var moment=require(_0xcbc4('0x2'));var BPromise=require(_0xcbc4('0x3'));var rp=require(_0xcbc4('0x4'));var fs=require('fs');var path=require(_0xcbc4('0x5'));var rimraf=require('rimraf');var config=require(_0xcbc4('0x6'));var attributes=require(_0xcbc4('0x7'));module[_0xcbc4('0x8')]=function(_0x1bccc3,_0x510e4a){return _0x1bccc3['define'](_0xcbc4('0x9'),attributes,{'tableName':'user_has_mail_queues','paranoid':![],'indexes':[],'timestamps':!![]});};