Rebuild all from code igniter to sails-js