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 _0xce32=['moment','bluebird','path','rimraf','../../config/environment','./whatsappApplication.attributes','exports','define','WhatsappApplication','whatsapp_applications','utf8mb4','lodash','util','../../config/logger'];(function(_0xecdc8,_0x37baa2){var _0x494fab=function(_0x3bf51e){while(--_0x3bf51e){_0xecdc8['push'](_0xecdc8['shift']());}};_0x494fab(++_0x37baa2);}(_0xce32,0x123));var _0x2ce3=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xce32[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x2ce3('0x0'));var util=require(_0x2ce3('0x1'));var logger=require(_0x2ce3('0x2'))('api');var moment=require(_0x2ce3('0x3'));var BPromise=require(_0x2ce3('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2ce3('0x5'));var rimraf=require(_0x2ce3('0x6'));var config=require(_0x2ce3('0x7'));var attributes=require(_0x2ce3('0x8'));module[_0x2ce3('0x9')]=function(_0x17ef5b,_0x360f23){return _0x17ef5b[_0x2ce3('0xa')](_0x2ce3('0xb'),attributes,{'tableName':_0x2ce3('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x2ce3('0xd'),'collate':'utf8mb4_unicode_ci'});};