How to add call a js file in custom module that are added in libraries folder in drupal 7?
That code just registers the library with the system. To use it, you need to add it to the page with either

drupal_add_library('mymodule', 'mymodule');


or as part of a render array:

$build['#attached']['library'][] = array('mymodule', 'mymodule');