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 _0x220f=['exports','define','whatsapp_accounts','lodash','util','api','path','rimraf','./whatsappAccount.attributes'];(function(_0x23ec34,_0x50cebd){var _0x31ac68=function(_0x5e23b7){while(--_0x5e23b7){_0x23ec34['push'](_0x23ec34['shift']());}};_0x31ac68(++_0x50cebd);}(_0x220f,0x17d));var _0xf220=function(_0x4771f9,_0x11390b){_0x4771f9=_0x4771f9-0x0;var _0x194dd7=_0x220f[_0x4771f9];return _0x194dd7;};'use strict';var _=require(_0xf220('0x0'));var util=require(_0xf220('0x1'));var logger=require('../../config/logger')(_0xf220('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xf220('0x3'));var rimraf=require(_0xf220('0x4'));var config=require('../../config/environment');var attributes=require(_0xf220('0x5'));module[_0xf220('0x6')]=function(_0x200856,_0x1e8169){return _0x200856[_0xf220('0x7')]('WhatsappAccount',attributes,{'tableName':_0xf220('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};