1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xe948=['request-promise','path','./whatsappAccount.attributes','exports','define','WhatsappAccount','whatsapp_accounts','lodash','../../config/logger','api','moment','bluebird'];(function(_0x396910,_0x397bda){var _0x217d81=function(_0x1e6ab9){while(--_0x1e6ab9){_0x396910['push'](_0x396910['shift']());}};_0x217d81(++_0x397bda);}(_0xe948,0x1db));var _0x8e94=function(_0x2fa21e,_0x49f072){_0x2fa21e=_0x2fa21e-0x0;var _0x19173a=_0xe948[_0x2fa21e];return _0x19173a;};'use strict';var _=require(_0x8e94('0x0'));var util=require('util');var logger=require(_0x8e94('0x1'))(_0x8e94('0x2'));var moment=require(_0x8e94('0x3'));var BPromise=require(_0x8e94('0x4'));var rp=require(_0x8e94('0x5'));var fs=require('fs');var path=require(_0x8e94('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x8e94('0x7'));module[_0x8e94('0x8')]=function(_0x411f00,_0x246d68){return _0x411f00[_0x8e94('0x9')](_0x8e94('0xa'),attributes,{'tableName':_0x8e94('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};