1 /**
  2  * @author Brian Carlsen
  3  * @version 1.0.0
  4  *
  5  * Serves as a wrapper to the MINDBODY Staff Service, providing 
  6  * some additional functionality.
  7  *
  8  * All Staff Service methods are available returning
  9  * 1) An extracted result using the instance method with the same name
 10  * 2) The raw array response using the instance method with the same name post-fixed with 'Response'.
 11  * 		The array consists of:
 12  * 			i) 		The object represtentation of the SOAP response
 13  * 			ii) 	The raw XML SOAP response
 14  * 			iii) 	The raw header info of the SOAP response
 15  */
 16 
 17 var Promise = require( 'bluebird' );
 18 
 19 var mboService = require( './mbo_Service' );
 20 
 21 //--------------- StaffService Class ---------------------
 22 
 23 
 24 /**
 25  * Represents the MINDOBDY Staff Service.
 26  *
 27  * @constructor
 28  * @param  {string} username Username of the MINDBODY client interacting with the service.
 29  * @param  {string} password Password of the MINDBODY client interacting with the service.
 30  * @return {mbo_StaffService}          Returns the Staff Service.
 31  */
 32 function mbo_StaffService( username, password ) {
 33 	mboService.call( this, 'StaffService', username, password );
 34 }
 35 mbo_StaffService.prototype = Object.create( mboService.prototype );
 36 mbo_StaffService.prototype.constructor = mbo_StaffService;
 37 
 38 
 39 module.exports = mbo_StaffService;