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 _0x6af7=['moment','path','rimraf','./whatsappApplication.attributes','define','WhatsappApplication','whatsapp_applications','utf8mb4','util','api'];(function(_0x5a8697,_0x4c7709){var _0x5d958f=function(_0x5ce346){while(--_0x5ce346){_0x5a8697['push'](_0x5a8697['shift']());}};_0x5d958f(++_0x4c7709);}(_0x6af7,0x1e8));var _0x76af=function(_0x4ba6f0,_0x4c4931){_0x4ba6f0=_0x4ba6f0-0x0;var _0x496f0f=_0x6af7[_0x4ba6f0];return _0x496f0f;};'use strict';var _=require('lodash');var util=require(_0x76af('0x0'));var logger=require('../../config/logger')(_0x76af('0x1'));var moment=require(_0x76af('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x76af('0x3'));var rimraf=require(_0x76af('0x4'));var config=require('../../config/environment');var attributes=require(_0x76af('0x5'));module['exports']=function(_0x4623db,_0x413f7c){return _0x4623db[_0x76af('0x6')](_0x76af('0x7'),attributes,{'tableName':_0x76af('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x76af('0x9'),'collate':'utf8mb4_unicode_ci'});};