Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / server / api / userWhatsappQueue / userWhatsappQueue.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 _0xc9cc=['exports','define','UserWhatsappQueue','user_has_whatsapp_queues','../../config/logger','api','moment','request-promise','path','rimraf','./userWhatsappQueue.attributes'];(function(_0x5b6a59,_0x3f751d){var _0x28a759=function(_0xccc978){while(--_0xccc978){_0x5b6a59['push'](_0x5b6a59['shift']());}};_0x28a759(++_0x3f751d);}(_0xc9cc,0xca));var _0xcc9c=function(_0x3cc70d,_0x85564a){_0x3cc70d=_0x3cc70d-0x0;var _0x2e35b7=_0xc9cc[_0x3cc70d];return _0x2e35b7;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xcc9c('0x0'))(_0xcc9c('0x1'));var moment=require(_0xcc9c('0x2'));var BPromise=require('bluebird');var rp=require(_0xcc9c('0x3'));var fs=require('fs');var path=require(_0xcc9c('0x4'));var rimraf=require(_0xcc9c('0x5'));var config=require('../../config/environment');var attributes=require(_0xcc9c('0x6'));module[_0xcc9c('0x7')]=function(_0x5a416e,_0x3997fe){return _0x5a416e[_0xcc9c('0x8')](_0xcc9c('0x9'),attributes,{'tableName':_0xcc9c('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};