5cfd0d8a4647027d04b0d2f808637429888565c8
[motion2.git] / server / api / whatsappQueue / whatsappQueue.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 _0xcd89=['whatsapp_queues','util','../../config/logger','api','moment','bluebird','rimraf','exports','WhatsappQueue'];(function(_0x1fee9d,_0x268602){var _0x2d5ff5=function(_0x2c428f){while(--_0x2c428f){_0x1fee9d['push'](_0x1fee9d['shift']());}};_0x2d5ff5(++_0x268602);}(_0xcd89,0x157));var _0x9cd8=function(_0x279f10,_0x57e812){_0x279f10=_0x279f10-0x0;var _0x59cd5c=_0xcd89[_0x279f10];return _0x59cd5c;};'use strict';var _=require('lodash');var util=require(_0x9cd8('0x0'));var logger=require(_0x9cd8('0x1'))(_0x9cd8('0x2'));var moment=require(_0x9cd8('0x3'));var BPromise=require(_0x9cd8('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x9cd8('0x5'));var config=require('../../config/environment');var attributes=require('./whatsappQueue.attributes');module[_0x9cd8('0x6')]=function(_0x255503,_0xfdc230){return _0x255503['define'](_0x9cd8('0x7'),attributes,{'tableName':_0x9cd8('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};