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 _0x7003=['bluebird','rimraf','exports','define','WhatsappApplication','whatsapp_applications','utf8mb4_unicode_ci','lodash','util','../../config/logger','api','moment'];(function(_0x7b173,_0x539d7f){var _0x1c598c=function(_0xe1e1e0){while(--_0xe1e1e0){_0x7b173['push'](_0x7b173['shift']());}};_0x1c598c(++_0x539d7f);}(_0x7003,0x97));var _0x3700=function(_0x1034bb,_0x4e20b3){_0x1034bb=_0x1034bb-0x0;var _0x453fdb=_0x7003[_0x1034bb];return _0x453fdb;};'use strict';var _=require(_0x3700('0x0'));var util=require(_0x3700('0x1'));var logger=require(_0x3700('0x2'))(_0x3700('0x3'));var moment=require(_0x3700('0x4'));var BPromise=require(_0x3700('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x3700('0x6'));var config=require('../../config/environment');var attributes=require('./whatsappApplication.attributes');module[_0x3700('0x7')]=function(_0x3db38f,_0x3853c2){return _0x3db38f[_0x3700('0x8')](_0x3700('0x9'),attributes,{'tableName':_0x3700('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x3700('0xb')});};