sdk/src/sync/push.js
function push(handler) {
        return pushTaskRunner.run(function() {
            reset();
            pushHandler = handler;
            return pushAllOperations().then(function() {
                return pushConflicts;
            });
        });
    }
function push(handler) {
        return pushTaskRunner.run(function() {
            reset();
            pushHandler = handler;
            return pushAllOperations().then(function() {
                return pushConflicts;
            });
        });
    }
function push ( handler ) { return pushTaskRunner . run ( function ( ) { reset ( ) ; pushHandler = handler ; return pushAllOperations ( ) . then ( function ( ) { return pushConflicts ; } ) ; } ) ; }
Pushes operations performed on the local store to the server tables.

@returns A promise that is fulfilled when all pending operations are pushed. Conflict errors won't fail the push operation.
All conflicts are collected and returned to the user at the completion of the push operation.
The promise is rejected if pushing any record fails for reasons other than conflict or is cancelled.
Pushes operations performed on the local store to the server tables .