Listo !
struct
api_google AIzaSyBDad_N0j_4WpmU5RbSdSpx1PxmT5RBq-w
applicationname mews
auth
component getAuthandRegister
METHODS
CHECKAUTHORIZATION
function CheckAuthorization
Arguments:none
ReturnType: boolean
Roles:  
Access: public
Static: false
Output: false
DisplayName:  
Hint: I check to see if the given request credentials match the required credentials.
Description:  
DOTOKEN
function dotoken
Arguments:
Name Required Type Default
userid Optional Any  
appid Optional Any  
mode Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETUSERIDFROMTOKEN
function getUserIDfromToken
Arguments:
Name Required Type Default
tokenID Optional Any  
appId Optional Any 1
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
INIT
function init
Arguments:none
ReturnType: struct
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
INITWORKER
function initWorker
Arguments:
Name Required Type Default
appId Optional Any  
userId Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
KEYS
function keys
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
RENEWTOKEN
function renewToken
Arguments:
Name Required Type Default
tokenid Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
datasource meback
fcm
component postFcmNotifications
METHODS
BUILDMESSAGE
function buildMessage
Arguments:
Name Required Type Default
msgCase Required string test
msgData Optional struct [runtime expression]
reqId Required numeric 0
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: use template
Description:  
CHECKAUTHORIZATION
function CheckAuthorization
Arguments:none
ReturnType: boolean
Roles:  
Access: public
Static: false
Output: false
DisplayName:  
Hint: I check to see if the given request credentials match the required credentials.
Description:  
DOTOKEN
function dotoken
Arguments:
Name Required Type Default
userid Optional Any  
appid Optional Any  
mode Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETTARGETS
function getTargets
Arguments:
Name Required Type Default
tokens Optional array [runtime expression]
whoFor Required string none
reqId Optional numeric 0
inqId Optional numeric 0
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns devices
Description:  
GETUSERIDFROMTOKEN
function getUserIDfromToken
Arguments:
Name Required Type Default
tokenID Optional Any  
appId Optional Any 1
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
INIT
function init
Arguments:none
ReturnType: struct
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
INITWORKER
function initWorker
Arguments:
Name Required Type Default
appId Optional Any  
userId Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
KEYS
function keys
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
LOGMESSAGE
function logMessage
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: optional logging
Description:  
POSTMESSAGE
function postMessage
Arguments:
Name Required Type Default
payload Required struct  
msgCase Required string test
tokens Required array  
options Optional struct [runtime expression]
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: actually sends
Description:  
RENEWTOKEN
function renewToken
Arguments:
Name Required Type Default
tokenid Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
SENDFCM
function sendFCM
Arguments:
Name Required Type Default
msgCase Required string test
reqId Optional numeric 0
inqId Optional numeric 0
whoFor Optional string none
tokens Optional array [runtime expression]
msgData Optional struct [runtime expression]
logFcm Optional boolean true
sendMsg Optional boolean true
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: main function
Description:  
helper
component getGeneralHelperTools
METHODS
BUILDMESSAGE
function buildMessage
Arguments:
Name Required Type Default
msgCase Required string test
msgData Optional struct [runtime expression]
reqId Required numeric 0
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: use template
Description:  
CHECKAUTHORIZATION
function CheckAuthorization
Arguments:none
ReturnType: boolean
Roles:  
Access: public
Static: false
Output: false
DisplayName:  
Hint: I check to see if the given request credentials match the required credentials.
Description:  
DOTOKEN
function dotoken
Arguments:
Name Required Type Default
userid Optional Any  
appid Optional Any  
mode Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETCLOSESTMARKET
function getClosestMarket
Arguments:
Name Required Type Default
lat Required float  
lng Required float  
appid Optional integer 1
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns closest market based on Latlng
Description:  
GETCURRENTBENEFITS
function getCurrentBenefits
Arguments:
Name Required Type Default
userid Optional Any 0
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETDISTANCE
function getDistance
Arguments:
Name Required Type Default
lat1 Required float  
lng1 Required float  
lat2 Required float  
lng2 Required float  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns distance from 2 points in km using harvesine
Description:  
GETGENDER
function getGender
Arguments:
Name Required Type Default
firstname Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns gender based on Name
Description:  
GETINQIDFROMUSERS
function getInqIdFromUsers
Arguments:
Name Required Type Default
userId1 Optional Any  
userid2 Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: needed because chat doesnt have inqid
Description:  
GETMARKETSETTINGS
function getMarketSettings
Arguments:
Name Required Type Default
userid Optional Any  
mode Optional Any  
appid Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETPREMIUMBENEFITS
function getPremiumBenefits
Arguments:
Name Required Type Default
userid Optional Any 0
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETTARGETS
function getTargets
Arguments:
Name Required Type Default
tokens Optional array [runtime expression]
whoFor Required string none
reqId Optional numeric 0
inqId Optional numeric 0
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns devices
Description:  
GETUSERIDFROMTOKEN
function getUserIDfromToken
Arguments:
Name Required Type Default
tokenID Optional Any  
appId Optional Any 1
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
INIT
function init
Arguments:none
ReturnType: struct
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
INITWORKER
function initWorker
Arguments:
Name Required Type Default
appId Optional Any  
userId Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
KEYS
function keys
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
LOGMESSAGE
function logMessage
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: optional logging
Description:  
POSTMESSAGE
function postMessage
Arguments:
Name Required Type Default
payload Required struct  
msgCase Required string test
tokens Required array  
options Optional struct [runtime expression]
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: actually sends
Description:  
RENEWTOKEN
function renewToken
Arguments:
Name Required Type Default
tokenid Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
SENDFCM
function sendFCM
Arguments:
Name Required Type Default
msgCase Required string test
reqId Optional numeric 0
inqId Optional numeric 0
whoFor Optional string none
tokens Optional array [runtime expression]
msgData Optional struct [runtime expression]
logFcm Optional boolean true
sendMsg Optional boolean true
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: main function
Description:  
keys
struct
firebase AAAAz-rAmeI:APA91bHlC5mj8NcGmfXYAzjgODp51uWtgeJkj4gdr-S7tmflBDuKLbW-ym7sIqmlgmMHTie_SOdIo4nlbvodTy3YzhbAEPhmsApJHcjNSistDfjoDp9hSkUbtJ3FEZAb-NJRoleRkuY6
firebaseV22 AAAAz-rAmeI:APA91bHlC5mj8NcGmfXYAzjgODp51uWtgeJkj4gdr-S7tmflBDuKLbW-ym7sIqmlgmMHTie_SOdIo4nlbvodTy3YzhbAEPhmsApJHcjNSistDfjoDp9hSkUbtJ3FEZAb-NJRoleRkuY6
mit
struct
data0 9265655477
endpoint https://bc.mitec.com.mx/p/gen
idbranch 0001
idcompany 0806
key 09662FDE36D728AB3A27CDDD12374638
pwd 53473NO8BM
user 0806SIUS0
rapidapi 657eb677e6msh79ffa1b4ef8efd7p1e130fjsn8e92b1dc1933
sendinblue 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
lang spa
mail
component postEmailSendInBlue
METHODS
BUILDMESSAGE
function buildMessage
Arguments:
Name Required Type Default
msgCase Required string test
msgData Optional struct [runtime expression]
reqId Required numeric 0
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: use template
Description:  
CHECKAUTHORIZATION
function CheckAuthorization
Arguments:none
ReturnType: boolean
Roles:  
Access: public
Static: false
Output: false
DisplayName:  
Hint: I check to see if the given request credentials match the required credentials.
Description:  
CREATECONTACT
function createContact
Arguments:
Name Required Type Default
params Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
DOTOKEN
function dotoken
Arguments:
Name Required Type Default
userid Optional Any  
appid Optional Any  
mode Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETCLOSESTMARKET
function getClosestMarket
Arguments:
Name Required Type Default
lat Required float  
lng Required float  
appid Optional integer 1
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns closest market based on Latlng
Description:  
GETCONTACT
function getContact
Arguments:
Name Required Type Default
email Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETCONTACTS
function getContacts
Arguments:none
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETCURRENTBENEFITS
function getCurrentBenefits
Arguments:
Name Required Type Default
userid Optional Any 0
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETDISTANCE
function getDistance
Arguments:
Name Required Type Default
lat1 Required float  
lng1 Required float  
lat2 Required float  
lng2 Required float  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns distance from 2 points in km using harvesine
Description:  
GETGENDER
function getGender
Arguments:
Name Required Type Default
firstname Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns gender based on Name
Description:  
GETINQIDFROMUSERS
function getInqIdFromUsers
Arguments:
Name Required Type Default
userId1 Optional Any  
userid2 Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: needed because chat doesnt have inqid
Description:  
GETMARKETSETTINGS
function getMarketSettings
Arguments:
Name Required Type Default
userid Optional Any  
mode Optional Any  
appid Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETPREMIUMBENEFITS
function getPremiumBenefits
Arguments:
Name Required Type Default
userid Optional Any 0
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETTARGETS
function getTargets
Arguments:
Name Required Type Default
tokens Optional array [runtime expression]
whoFor Required string none
reqId Optional numeric 0
inqId Optional numeric 0
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns devices
Description:  
GETUSERIDFROMTOKEN
function getUserIDfromToken
Arguments:
Name Required Type Default
tokenID Optional Any  
appId Optional Any 1
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
INIT
function init
Arguments:none
ReturnType: struct
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
INITWORKER
function initWorker
Arguments:
Name Required Type Default
appId Optional Any  
userId Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
KEYS
function keys
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
LISTCONTACTS
function listContacts
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
LOGMAIL
function logMail
Arguments:
Name Required Type Default
templateID Optional Any  
userid Optional Any  
reqid Optional Any  
inqid Optional Any 0
messageID Optional Any  
email Optional Any [empty string]
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
LOGMESSAGE
function logMessage
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: optional logging
Description:  
POSTMESSAGE
function postMessage
Arguments:
Name Required Type Default
payload Required struct  
msgCase Required string test
tokens Required array  
options Optional struct [runtime expression]
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: actually sends
Description:  
RENEWTOKEN
function renewToken
Arguments:
Name Required Type Default
tokenid Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
SENDFCM
function sendFCM
Arguments:
Name Required Type Default
msgCase Required string test
reqId Optional numeric 0
inqId Optional numeric 0
whoFor Optional string none
tokens Optional array [runtime expression]
msgData Optional struct [runtime expression]
logFcm Optional boolean true
sendMsg Optional boolean true
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: main function
Description:  
SENDMAIL
function sendMail
Arguments:
Name Required Type Default
userid Optional Any  
templateId Optional numeric  
params Optional struct [runtime expression]
reqid Optional Any 0
inqid Optional Any 0
sendMail Optional Any true
logMail Optional Any true
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
SYNCBLOCKED
function syncBlocked
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
SYNCMAIL
function syncMail
Arguments:
Name Required Type Default
userid Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
UPDATECONTACT
function updateContact
Arguments:
Name Required Type Default
email Optional Any  
params Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
pay
component postMoneyPaySubSend
METHODS
BUILDMESSAGE
function buildMessage
Arguments:
Name Required Type Default
msgCase Required string test
msgData Optional struct [runtime expression]
reqId Required numeric 0
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: use template
Description:  
CALCFEES
function calcFees
Arguments:
Name Required Type Default
to_userID Optional Any  
amount Optional Any  
addVat Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
CHECKAUTHORIZATION
function CheckAuthorization
Arguments:none
ReturnType: boolean
Roles:  
Access: public
Static: false
Output: false
DisplayName:  
Hint: I check to see if the given request credentials match the required credentials.
Description:  
CREATECONTACT
function createContact
Arguments:
Name Required Type Default
params Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
DOTOKEN
function dotoken
Arguments:
Name Required Type Default
userid Optional Any  
appid Optional Any  
mode Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETCLOSESTMARKET
function getClosestMarket
Arguments:
Name Required Type Default
lat Required float  
lng Required float  
appid Optional integer 1
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns closest market based on Latlng
Description:  
GETCONTACT
function getContact
Arguments:
Name Required Type Default
email Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETCONTACTS
function getContacts
Arguments:none
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETCURRENTBENEFITS
function getCurrentBenefits
Arguments:
Name Required Type Default
userid Optional Any 0
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETDISTANCE
function getDistance
Arguments:
Name Required Type Default
lat1 Required float  
lng1 Required float  
lat2 Required float  
lng2 Required float  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns distance from 2 points in km using harvesine
Description:  
GETGENDER
function getGender
Arguments:
Name Required Type Default
firstname Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns gender based on Name
Description:  
GETINQIDFROMUSERS
function getInqIdFromUsers
Arguments:
Name Required Type Default
userId1 Optional Any  
userid2 Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: needed because chat doesnt have inqid
Description:  
GETMARKETSETTINGS
function getMarketSettings
Arguments:
Name Required Type Default
userid Optional Any  
mode Optional Any  
appid Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETPREMIUMBENEFITS
function getPremiumBenefits
Arguments:
Name Required Type Default
userid Optional Any 0
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETTARGETS
function getTargets
Arguments:
Name Required Type Default
tokens Optional array [runtime expression]
whoFor Required string none
reqId Optional numeric 0
inqId Optional numeric 0
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns devices
Description:  
GETUSERIDFROMTOKEN
function getUserIDfromToken
Arguments:
Name Required Type Default
tokenID Optional Any  
appId Optional Any 1
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
INIT
function init
Arguments:none
ReturnType: struct
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
INITWORKER
function initWorker
Arguments:
Name Required Type Default
appId Optional Any  
userId Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
KEYS
function keys
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
LISTCONTACTS
function listContacts
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
LOGMAIL
function logMail
Arguments:
Name Required Type Default
templateID Optional Any  
userid Optional Any  
reqid Optional Any  
inqid Optional Any 0
messageID Optional Any  
email Optional Any [empty string]
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
LOGMESSAGE
function logMessage
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: optional logging
Description:  
MITCREATEORDER
function MITcreateOrder
Arguments:
Name Required Type Default
amount Optional Any  
concept Optional Any  
addVat Optional Any  
from_userID Optional Any  
to_userID Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
MITDECODERESPONSE
function MITdecodeResponse
Arguments:
Name Required Type Default
response Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
POSTMESSAGE
function postMessage
Arguments:
Name Required Type Default
payload Required struct  
msgCase Required string test
tokens Required array  
options Optional struct [runtime expression]
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: actually sends
Description:  
RENEWTOKEN
function renewToken
Arguments:
Name Required Type Default
tokenid Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
SENDFCM
function sendFCM
Arguments:
Name Required Type Default
msgCase Required string test
reqId Optional numeric 0
inqId Optional numeric 0
whoFor Optional string none
tokens Optional array [runtime expression]
msgData Optional struct [runtime expression]
logFcm Optional boolean true
sendMsg Optional boolean true
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: main function
Description:  
SENDMAIL
function sendMail
Arguments:
Name Required Type Default
userid Optional Any  
templateId Optional numeric  
params Optional struct [runtime expression]
reqid Optional Any 0
inqid Optional Any 0
sendMail Optional Any true
logMail Optional Any true
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
SYNCBLOCKED
function syncBlocked
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
SYNCMAIL
function syncMail
Arguments:
Name Required Type Default
userid Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
UPDATECONTACT
function updateContact
Arguments:
Name Required Type Default
email Optional Any  
params Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
sys
component postSystemTools
METHODS
BUILDMESSAGE
function buildMessage
Arguments:
Name Required Type Default
msgCase Required string test
msgData Optional struct [runtime expression]
reqId Required numeric 0
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: use template
Description:  
CALCFEES
function calcFees
Arguments:
Name Required Type Default
to_userID Optional Any  
amount Optional Any  
addVat Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
CHECKAUTHORIZATION
function CheckAuthorization
Arguments:none
ReturnType: boolean
Roles:  
Access: public
Static: false
Output: false
DisplayName:  
Hint: I check to see if the given request credentials match the required credentials.
Description:  
CHECKSENTMAIL
function checkSentMail
Arguments:
Name Required Type Default
template Optional Any  
inqId Optional Any  
userid Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
CREATECONTACT
function createContact
Arguments:
Name Required Type Default
params Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
DOTOKEN
function dotoken
Arguments:
Name Required Type Default
userid Optional Any  
appid Optional Any  
mode Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
EMAILCHECKINVALID
function emailCheckInvalid
Arguments:
Name Required Type Default
email Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETCHATMESSAGES
function getChatMessages
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETCLOSESTMARKET
function getClosestMarket
Arguments:
Name Required Type Default
lat Required float  
lng Required float  
appid Optional integer 1
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns closest market based on Latlng
Description:  
GETCONTACT
function getContact
Arguments:
Name Required Type Default
email Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETCONTACTS
function getContacts
Arguments:none
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETCURRENTBENEFITS
function getCurrentBenefits
Arguments:
Name Required Type Default
userid Optional Any 0
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETDISTANCE
function getDistance
Arguments:
Name Required Type Default
lat1 Required float  
lng1 Required float  
lat2 Required float  
lng2 Required float  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns distance from 2 points in km using harvesine
Description:  
GETERROR
function getError
Arguments:
Name Required Type Default
appId Optional Any  
errorCode Optional Any  
errorAPI Optional Any  
errorVars Optional Any structnew()
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETGENDER
function getGender
Arguments:
Name Required Type Default
firstname Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns gender based on Name
Description:  
GETINQIDFROMUSERS
function getInqIdFromUsers
Arguments:
Name Required Type Default
userId1 Optional Any  
userid2 Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: needed because chat doesnt have inqid
Description:  
GETMARKETSETTINGS
function getMarketSettings
Arguments:
Name Required Type Default
userid Optional Any  
mode Optional Any  
appid Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETPREMIUMBENEFITS
function getPremiumBenefits
Arguments:
Name Required Type Default
userid Optional Any 0
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
GETTARGETS
function getTargets
Arguments:
Name Required Type Default
tokens Optional array [runtime expression]
whoFor Required string none
reqId Optional numeric 0
inqId Optional numeric 0
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns devices
Description:  
GETUSERIDFROMTOKEN
function getUserIDfromToken
Arguments:
Name Required Type Default
tokenID Optional Any  
appId Optional Any 1
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
INIT
function init
Arguments:none
ReturnType: struct
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
INITWORKER
function initWorker
Arguments:
Name Required Type Default
appId Optional Any  
userId Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
INSERTCALL
function insertCall
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
KEYS
function keys
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
LISTCONTACTS
function listContacts
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
LOGERROR
function logError
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
LOGMAIL
function logMail
Arguments:
Name Required Type Default
templateID Optional Any  
userid Optional Any  
reqid Optional Any  
inqid Optional Any 0
messageID Optional Any  
email Optional Any [empty string]
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
LOGMESSAGE
function logMessage
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: optional logging
Description:  
MITCREATEORDER
function MITcreateOrder
Arguments:
Name Required Type Default
amount Optional Any  
concept Optional Any  
addVat Optional Any  
from_userID Optional Any  
to_userID Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
MITDECODERESPONSE
function MITdecodeResponse
Arguments:
Name Required Type Default
response Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
PHONECHECKINVALID
function phoneCheckInvalid
Arguments:
Name Required Type Default
phone Optional Any  
countryCode Optional Any MX
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
POSTMESSAGE
function postMessage
Arguments:
Name Required Type Default
payload Required struct  
msgCase Required string test
tokens Required array  
options Optional struct [runtime expression]
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: actually sends
Description:  
RENEWTOKEN
function renewToken
Arguments:
Name Required Type Default
tokenid Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
SENDFCM
function sendFCM
Arguments:
Name Required Type Default
msgCase Required string test
reqId Optional numeric 0
inqId Optional numeric 0
whoFor Optional string none
tokens Optional array [runtime expression]
msgData Optional struct [runtime expression]
logFcm Optional boolean true
sendMsg Optional boolean true
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: main function
Description:  
SENDMAIL
function sendMail
Arguments:
Name Required Type Default
userid Optional Any  
templateId Optional numeric  
params Optional struct [runtime expression]
reqid Optional Any 0
inqid Optional Any 0
sendMail Optional Any true
logMail Optional Any true
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
SYNCBLOCKED
function syncBlocked
Arguments:none
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
SYNCGRADES
function syncGrades
Arguments:
Name Required Type Default
userId Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
SYNCMAIL
function syncMail
Arguments:
Name Required Type Default
userid Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
UPDATECONTACT
function updateContact
Arguments:
Name Required Type Default
email Optional Any  
params Optional Any  
ReturnType: Any
Roles:  
Access: remote
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
UPDATEVARS
function updateVars
Arguments:
Name Required Type Default
updateType Optional Any [empty string]
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint:  
Description:  
UPLOADFILES3
function uploadFileS3
Arguments:
Name Required Type Default
filePath Optional Any  
ReturnType: Any
Roles:  
Access: public
Static: false
Output:  
DisplayName:  
Hint: returns full qualified public URL
Description:  
tokenduration 43200