20a4ecddc50af35510e44e2f46fc7acd5b199cd6
[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 _0x130e=['define','user_has_whatsapp_queues','api','moment','request-promise','rimraf','./userWhatsappQueue.attributes'];(function(_0x37a9d7,_0x2b6fde){var _0x1343d3=function(_0x3bde45){while(--_0x3bde45){_0x37a9d7['push'](_0x37a9d7['shift']());}};_0x1343d3(++_0x2b6fde);}(_0x130e,0x72));var _0xe130=function(_0x531e56,_0x378151){_0x531e56=_0x531e56-0x0;var _0x3145cb=_0x130e[_0x531e56];return _0x3145cb;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xe130('0x0'));var moment=require(_0xe130('0x1'));var BPromise=require('bluebird');var rp=require(_0xe130('0x2'));var fs=require('fs');var path=require('path');var rimraf=require(_0xe130('0x3'));var config=require('../../config/environment');var attributes=require(_0xe130('0x4'));module['exports']=function(_0x5a489d,_0x402921){return _0x5a489d[_0xe130('0x5')]('UserWhatsappQueue',attributes,{'tableName':_0xe130('0x6'),'paranoid':![],'indexes':[],'timestamps':!![]});};