Built motion from commit 64a6f4bc.|2.6.26
[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 _0x79ab=['bluebird','path','../../config/environment','./whatsappQueue.attributes','whatsapp_queues','../../config/logger','api','moment'];(function(_0x39cd7e,_0x5e991b){var _0x1cd480=function(_0x509ecb){while(--_0x509ecb){_0x39cd7e['push'](_0x39cd7e['shift']());}};_0x1cd480(++_0x5e991b);}(_0x79ab,0x165));var _0xb79a=function(_0x5a89ea,_0x436388){_0x5a89ea=_0x5a89ea-0x0;var _0x21193d=_0x79ab[_0x5a89ea];return _0x21193d;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xb79a('0x0'))(_0xb79a('0x1'));var moment=require(_0xb79a('0x2'));var BPromise=require(_0xb79a('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xb79a('0x4'));var rimraf=require('rimraf');var config=require(_0xb79a('0x5'));var attributes=require(_0xb79a('0x6'));module['exports']=function(_0x193179,_0x1095ed){return _0x193179['define']('WhatsappQueue',attributes,{'tableName':_0xb79a('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};