Methods
(async, static) asyncForEach(array, callback) → {promise}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
array |
array | async function array |
callback |
function | call back |
Returns:
- Type
- promise
(static) calculateArrayIncrement(amount)
- Source:
calculate array increment
Parameters:
Name | Type | Description |
---|---|---|
amount |
number | amount |
(static) capitalize(data) → {string}
- Source:
capitalize
Parameters:
Name | Type | Description |
---|---|---|
data |
string | data |
Returns:
- Type
- string
(static) changeDataType(data, type)
- Source:
change data type
Parameters:
Name | Type | Description |
---|---|---|
data |
object | data |
type |
string | string |
(async, static) checkallnotifyExtra(uid, nid, trigerType)
- Source:
check all notify extra
Parameters:
Name | Type | Description |
---|---|---|
uid |
numebr | user id |
nid |
numebr | nid |
trigerType |
string | trigger type |
(async, static) checkmailnotify(req, nid)
- Source:
check mail notify
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request object |
nid |
number | nid |
(async, static) checkmailnotifyExtra(uid, nid)
- Source:
check mail notify extra
Parameters:
Name | Type | Description |
---|---|---|
uid |
number | userid |
nid |
number | id |
(async, static) checksmsnotify(req, nid)
- Source:
check sms notify
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request |
nid |
number | nid |
(async, static) checksmsnotifyExtra(nid, uid)
- Source:
check soms notify extra
Parameters:
Name | Type | Description |
---|---|---|
nid |
number | nid |
uid |
number | user id |
(async, static) commonselectparenttable(data, baseid, proid, baseTableUsed)
- Source:
common select parent table
Parameters:
Name | Type | Description |
---|---|---|
data |
object | data |
baseid |
number | base id |
proid |
number | project id |
baseTableUsed |
string | base table used |
(static) currencyFormat(data) → {string}
- Source:
currency format
Parameters:
Name | Type | Description |
---|---|---|
data |
string | data |
Returns:
- Type
- string
(static) dateFormatFunction(data) → {string}
- Source:
date format function
Parameters:
Name | Type | Description |
---|---|---|
data |
string | data |
Returns:
- Type
- string
(static) dateTimeConvert(date)
- Source:
date time convert
Parameters:
Name | Type | Description |
---|---|---|
date |
string |
(static) dateTimeFormatConvert(date)
- Source:
date time format convert
Parameters:
Name | Type | Description |
---|---|---|
date |
string | date |
(static) dateTimeFormatFunction(data) → {string}
- Source:
date time format function
Parameters:
Name | Type | Description |
---|---|---|
data |
string | data |
Returns:
- Type
- string
(async, static) eventTriggerFuction(data, sendToEmail, sendToPhone, tempName, isAdmin, notifyID, userID, suffix)
- Source:
event trigger function
Parameters:
Name | Type | Default | Description |
---|---|---|---|
data |
object | data object |
|
sendToEmail |
send to email |
||
sendToPhone |
string | send to phone |
|
tempName |
string | temp name |
|
isAdmin |
boolean |
1
|
is admin |
notifyID |
number |
0
|
notify id |
userID |
number |
0
|
user id |
suffix |
string | suffix |
(async, static) fetchFilteredDataFunction(req, baseTableUsed, customTableUsed, tableName, object)
- Source:
fetch filtered data function
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request object |
baseTableUsed |
string | base table used |
customTableUsed |
string | custom table used |
tableName |
string | table name |
object |
commonModule.fetchFilteredDataFunction |
(async, static) fetchTableFunction(req, baseTableUsed, customTableUsed, tableName, object)
- Source:
fetch table function
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request object |
baseTableUsed |
string | base table used |
customTableUsed |
string | custom table used |
tableName |
string | table name |
object |
commonModule.fetchTableFunction |
(async, static) getAvatarLoop(items, folderName)
- Source:
get avatar loop
Parameters:
Name | Type | Description |
---|---|---|
items |
object | items |
folderName |
string | folder name |
(async, static) getconfigvariables(variable)
- Source:
get config variables
Parameters:
Name | Type | Description |
---|---|---|
variable |
number | amount |
(async, static) getdynamicinnercontents(req, responseData)
- Source:
get dymanic inner contents
Parameters:
Name | Type | Description |
---|---|---|
req |
object | reuest |
responseData |
object | response data |
(async, static) getemplateData(tName, trigerType)
- Source:
get template data
Parameters:
Name | Type | Description |
---|---|---|
tName |
string | template name |
trigerType |
string | trigger type |
(async, static) getemplatePhrase(tID)
- Source:
get template phrase
Parameters:
Name | Type | Description |
---|---|---|
tID |
number | template id |
(static) getStateISOCode(stateName, countryCode)
- Source:
get state ISO code
Parameters:
Name | Type | Description |
---|---|---|
stateName |
string | state name |
countryCode |
string | country code |
(static) getValidID(editID)
- Source:
get valid id
Parameters:
Name | Type | Description |
---|---|---|
editID |
number |
(static) jsonResponse(res, status, message)
- Source:
Json response
Parameters:
Name | Type | Description |
---|---|---|
res |
object | response |
status |
string | status |
message |
string | message |
(async, static) mailtemps(event, language)
- Source:
mail temps
Parameters:
Name | Type | Description |
---|---|---|
event |
string | |
language |
string |
(static) multipleFloat(data, data2) → {number}
- Source:
multiply the two float values
Parameters:
Name | Type | Description |
---|---|---|
data |
number | data |
data2 |
number | data2 |
Returns:
- Type
- number
(async, static) notifycheck(req)
- Source:
nofify check
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request object |
(async, static) notifyinsert(req)
- Source:
nofify insert
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request object |
(async, static) notifyinsertCron(wonNotify)
- Source:
nofify insert cron
Parameters:
Name | Type | Description |
---|---|---|
wonNotify |
object | won notify |
(async, static) postalltypeoflisting(req, data, baseTableUsed)
- Source:
post all type of listing
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request |
data |
object | data |
baseTableUsed |
string | base table usedd |
(static) shorten(data, num)
- Source:
shorten
Parameters:
Name | Type | Description |
---|---|---|
data |
object | data |
num |
number | number |
(async, static) smstemps(event, language)
- Source:
smstemps
Parameters:
Name | Type | Description |
---|---|---|
event |
string | |
language |
string |
(static) sumFloat(data, data2) → {number}
- Source:
sum the two float values
Parameters:
Name | Type | Description |
---|---|---|
data |
number | data |
data2 |
number | data2 |
Returns:
- Type
- number
(async, static) tableFunction(req, baseTableUsed, customTableUsed, defaultAddition, ignoreArray, customIgnoreArray, object, object)
- Source:
table function
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request |
baseTableUsed |
string | base table userd |
customTableUsed |
string | custom table used |
defaultAddition |
object | default addition |
ignoreArray |
array | ignore array |
customIgnoreArray |
array | custom ignore array |
object |
commonModule.customTableFunction | |
object |
commonModule.baseTableFunction |
(async, static) userDetails(id)
- Source:
user details
Parameters:
Name | Type | Description |
---|---|---|
id |
number | user id |