cd7a589fa6827ff404c5193113a09b97aeb4cd2e
[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 _0xc10f=['user_has_whatsapp_queues','util','bluebird','path','../../config/environment','./userWhatsappQueue.attributes','UserWhatsappQueue'];(function(_0x7c8c4e,_0x4c117c){var _0x13430e=function(_0x1e38cc){while(--_0x1e38cc){_0x7c8c4e['push'](_0x7c8c4e['shift']());}};_0x13430e(++_0x4c117c);}(_0xc10f,0x197));var _0xfc10=function(_0x38d6e8,_0x3fd366){_0x38d6e8=_0x38d6e8-0x0;var _0x1d3ff6=_0xc10f[_0x38d6e8];return _0x1d3ff6;};'use strict';var _=require('lodash');var util=require(_0xfc10('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xfc10('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xfc10('0x2'));var rimraf=require('rimraf');var config=require(_0xfc10('0x3'));var attributes=require(_0xfc10('0x4'));module['exports']=function(_0x36fd60,_0x1db534){return _0x36fd60['define'](_0xfc10('0x5'),attributes,{'tableName':_0xfc10('0x6'),'paranoid':![],'indexes':[],'timestamps':!![]});};